Trait ICapeThermoPropertyRoutineImpl

Source
pub trait ICapeThermoPropertyRoutineImpl: ICapeThermoPropertyRoutine {
    type T: ICapeInterfaceImpl + ICapeThermoPropertyRoutineImpl;

    const VTABLE: CAPEOPEN_1_2_ICapeThermoPropertyRoutine_VTable = _;

    // Required method
    fn as_interface_pointer(&mut self) -> *mut ICapeInterface;

    // Provided methods
    fn init_interface() -> ICapeInterface { ... }
    fn init<Timpl: ICapeThermoPropertyRoutineImpl + ICapeInterfaceImpl>(
        u: &mut Timpl,
    ) { ... }
    extern "C" fn raw_calc_and_get_ln_phi(
        me: *mut c_void,
        phase_label: *mut ICapeString,
        temperature: CapeReal,
        pressure: CapeReal,
        mole_fraction: *mut ICapeArrayReal,
        f_flags: CapeInteger,
        ln_phi: *mut ICapeArrayReal,
        ln_phi_dt: *mut ICapeArrayReal,
        ln_phi_dp: *mut ICapeArrayReal,
        ln_phi_dn: *mut ICapeArrayReal,
    ) -> CapeResult { ... }
    extern "C" fn raw_calc_single_phase_prop(
        me: *mut c_void,
        props: *mut ICapeArrayString,
        phase_label: *mut ICapeString,
    ) -> CapeResult { ... }
    extern "C" fn raw_calc_two_phase_prop(
        me: *mut c_void,
        props: *mut ICapeArrayString,
        phase_labels: *mut ICapeArrayString,
    ) -> CapeResult { ... }
    extern "C" fn raw_check_single_phase_prop_spec(
        me: *mut c_void,
        property: *mut ICapeString,
        phase_label: *mut ICapeString,
        valid: *mut CapeBoolean,
    ) -> CapeResult { ... }
    extern "C" fn raw_check_two_phase_prop_spec(
        me: *mut c_void,
        property: *mut ICapeString,
        phase_labels: *mut ICapeArrayString,
        valid: *mut CapeBoolean,
    ) -> CapeResult { ... }
    extern "C" fn raw_get_single_phase_prop_list(
        me: *mut c_void,
        props: *mut ICapeArrayString,
    ) -> CapeResult { ... }
    extern "C" fn raw_get_two_phase_prop_list(
        me: *mut c_void,
        props: *mut ICapeArrayString,
    ) -> CapeResult { ... }
}

Provided Associated Constants§

Required Associated Types§

Required Methods§

Provided Methods§

Source

fn init_interface() -> ICapeInterface

prepare CAPEOPEN_1_2_ICapeThermoPropertyRoutine interface and return as generic ICapeInterface pointer

Source

fn init<Timpl: ICapeThermoPropertyRoutineImpl + ICapeInterfaceImpl>( u: &mut Timpl, )

Source

extern "C" fn raw_calc_and_get_ln_phi( me: *mut c_void, phase_label: *mut ICapeString, temperature: CapeReal, pressure: CapeReal, mole_fraction: *mut ICapeArrayReal, f_flags: CapeInteger, ln_phi: *mut ICapeArrayReal, ln_phi_dt: *mut ICapeArrayReal, ln_phi_dp: *mut ICapeArrayReal, ln_phi_dn: *mut ICapeArrayReal, ) -> CapeResult

Source

extern "C" fn raw_calc_single_phase_prop( me: *mut c_void, props: *mut ICapeArrayString, phase_label: *mut ICapeString, ) -> CapeResult

Source

extern "C" fn raw_calc_two_phase_prop( me: *mut c_void, props: *mut ICapeArrayString, phase_labels: *mut ICapeArrayString, ) -> CapeResult

Source

extern "C" fn raw_check_single_phase_prop_spec( me: *mut c_void, property: *mut ICapeString, phase_label: *mut ICapeString, valid: *mut CapeBoolean, ) -> CapeResult

Source

extern "C" fn raw_check_two_phase_prop_spec( me: *mut c_void, property: *mut ICapeString, phase_labels: *mut ICapeArrayString, valid: *mut CapeBoolean, ) -> CapeResult

Source

extern "C" fn raw_get_single_phase_prop_list( me: *mut c_void, props: *mut ICapeArrayString, ) -> CapeResult

Source

extern "C" fn raw_get_two_phase_prop_list( me: *mut c_void, props: *mut ICapeArrayString, ) -> CapeResult

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§