Struct CapeThermoMaterial

Source
pub struct CapeThermoMaterial {
    pub(crate) interface: *mut CAPEOPEN_1_2_ICapeThermoMaterial,
}

Fields§

§interface: *mut CAPEOPEN_1_2_ICapeThermoMaterial

Implementations§

Source§

impl CapeThermoMaterial

Source

pub fn clear_all_props(&self) -> Result<(), COBIAError>

Source

pub fn copy_from_material( &self, source: &CapeThermoMaterial, ) -> Result<(), COBIAError>

Source

pub fn create_material(&self) -> Result<CapeThermoMaterial, COBIAError>

Source

pub fn get_overall_prop<TypeOfProperty: CapeStringProviderIn, TypeOfBasis: CapeStringProviderIn, TypeOfResults: CapeArrayRealProviderOut>( &self, property: &TypeOfProperty, basis: &TypeOfBasis, results: &mut TypeOfResults, ) -> Result<(), COBIAError>

Source

pub fn get_overall_tpfraction<TypeOfComposition: CapeArrayRealProviderOut>( &self, temperature: &mut CapeReal, pressure: &mut CapeReal, composition: &mut TypeOfComposition, ) -> Result<(), COBIAError>

Source

pub fn get_present_phases<TypeOfPhaseLabels: CapeArrayStringProviderOut, TypeOfPhaseStatus: CapeArrayEnumerationProviderOut>( &self, phase_labels: &mut TypeOfPhaseLabels, phase_status: &mut TypeOfPhaseStatus, ) -> Result<(), COBIAError>

Source

pub fn get_single_phase_prop<TypeOfProperty: CapeStringProviderIn, TypeOfPhaseLabel: CapeStringProviderIn, TypeOfBasis: CapeStringProviderIn, TypeOfResults: CapeArrayRealProviderOut>( &self, property: &TypeOfProperty, phase_label: &TypeOfPhaseLabel, basis: &TypeOfBasis, results: &mut TypeOfResults, ) -> Result<(), COBIAError>

Source

pub fn get_tpfraction<TypeOfPhaseLabel: CapeStringProviderIn, TypeOfComposition: CapeArrayRealProviderOut>( &self, phase_label: &TypeOfPhaseLabel, temperature: &mut CapeReal, pressure: &mut CapeReal, composition: &mut TypeOfComposition, ) -> Result<(), COBIAError>

Source

pub fn get_two_phase_prop<TypeOfProperty: CapeStringProviderIn, TypeOfPhaseLabels: CapeArrayStringProviderIn, TypeOfBasis: CapeStringProviderIn, TypeOfResults: CapeArrayRealProviderOut>( &self, property: &TypeOfProperty, phase_labels: &TypeOfPhaseLabels, basis: &TypeOfBasis, results: &mut TypeOfResults, ) -> Result<(), COBIAError>

Source

pub fn set_overall_prop<TypeOfProperty: CapeStringProviderIn, TypeOfBasis: CapeStringProviderIn, TypeOfValues: CapeArrayRealProviderIn>( &self, property: &TypeOfProperty, basis: &TypeOfBasis, values: &TypeOfValues, ) -> Result<(), COBIAError>

Source

pub fn set_present_phases<TypeOfPhaseLabels: CapeArrayStringProviderIn, TypeOfPhaseStatus: CapeArrayEnumerationProviderIn>( &self, phase_labels: &TypeOfPhaseLabels, phase_status: &TypeOfPhaseStatus, ) -> Result<(), COBIAError>

Source

pub fn set_single_phase_prop<TypeOfProperty: CapeStringProviderIn, TypeOfPhaseLabel: CapeStringProviderIn, TypeOfBasis: CapeStringProviderIn, TypeOfValues: CapeArrayRealProviderIn>( &self, property: &TypeOfProperty, phase_label: &TypeOfPhaseLabel, basis: &TypeOfBasis, values: &TypeOfValues, ) -> Result<(), COBIAError>

Source

pub fn set_two_phase_prop<TypeOfProperty: CapeStringProviderIn, TypeOfPhaseLabels: CapeArrayStringProviderIn, TypeOfBasis: CapeStringProviderIn, TypeOfValues: CapeArrayRealProviderIn>( &self, property: &TypeOfProperty, phase_labels: &TypeOfPhaseLabels, basis: &TypeOfBasis, values: &TypeOfValues, ) -> Result<(), COBIAError>

Trait Implementations§

Source§

impl CapeSmartPointer for CapeThermoMaterial

Source§

type Interface = _CAPEOPEN_1_2_ICapeThermoMaterial

Source§

fn as_interface_pointer(&self) -> *mut Self::Interface

Get the interface pointer Read more
Source§

fn as_cape_interface_pointer(&self) -> *mut ICapeInterface

Get the ICapeInterface Read more
Source§

fn get_interface_id() -> &'static CapeUUID

Get the interface ID Read more
Source§

fn from_object<T: CapeSmartPointer>( smart_pointer: &T, ) -> Result<Self, COBIAError>

Get an interface wrapper instance from another object Read more
Source§

fn from_interface_pointer(interface: *mut Self::Interface) -> Self

Get an interface wrapper instance from an interface pointer of the wrapped type Read more
Source§

fn attach(interface: *mut Self::Interface) -> Self

Get an interface wrapper instance from an interface pointer of the wrapped type, without adding a reference Read more
Source§

fn detach(self) -> *mut Self::Interface

Return an interface pointer and release ownership, without decreasing a reference Read more
Source§

fn from_cape_interface_pointer( interface: *mut ICapeInterface, ) -> Result<Self, COBIAError>

Get an interface wrapper instance from any interface pointer Read more
Source§

fn last_error(&self) -> Option<CapeError>

Get the last error Read more
Source§

impl Clone for CapeThermoMaterial

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Drop for CapeThermoMaterial

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.