pub struct CapeThermoMaterial {
pub(crate) interface: *mut CAPEOPEN_1_2_ICapeThermoMaterial,
}Fields§
§interface: *mut CAPEOPEN_1_2_ICapeThermoMaterialImplementations§
Source§impl CapeThermoMaterial
impl CapeThermoMaterial
pub fn clear_all_props(&self) -> Result<(), COBIAError>
pub fn copy_from_material( &self, source: &CapeThermoMaterial, ) -> Result<(), COBIAError>
pub fn create_material(&self) -> Result<CapeThermoMaterial, COBIAError>
pub fn get_overall_prop<TypeOfProperty: CapeStringProviderIn, TypeOfBasis: CapeStringProviderIn, TypeOfResults: CapeArrayRealProviderOut>( &self, property: &TypeOfProperty, basis: &TypeOfBasis, results: &mut TypeOfResults, ) -> Result<(), COBIAError>
pub fn get_overall_tpfraction<TypeOfComposition: CapeArrayRealProviderOut>( &self, temperature: &mut CapeReal, pressure: &mut CapeReal, composition: &mut TypeOfComposition, ) -> Result<(), COBIAError>
pub fn get_present_phases<TypeOfPhaseLabels: CapeArrayStringProviderOut, TypeOfPhaseStatus: CapeArrayEnumerationProviderOut>( &self, phase_labels: &mut TypeOfPhaseLabels, phase_status: &mut TypeOfPhaseStatus, ) -> Result<(), COBIAError>
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>
pub fn get_tpfraction<TypeOfPhaseLabel: CapeStringProviderIn, TypeOfComposition: CapeArrayRealProviderOut>( &self, phase_label: &TypeOfPhaseLabel, temperature: &mut CapeReal, pressure: &mut CapeReal, composition: &mut TypeOfComposition, ) -> Result<(), COBIAError>
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>
pub fn set_overall_prop<TypeOfProperty: CapeStringProviderIn, TypeOfBasis: CapeStringProviderIn, TypeOfValues: CapeArrayRealProviderIn>( &self, property: &TypeOfProperty, basis: &TypeOfBasis, values: &TypeOfValues, ) -> Result<(), COBIAError>
pub fn set_present_phases<TypeOfPhaseLabels: CapeArrayStringProviderIn, TypeOfPhaseStatus: CapeArrayEnumerationProviderIn>( &self, phase_labels: &TypeOfPhaseLabels, phase_status: &TypeOfPhaseStatus, ) -> Result<(), COBIAError>
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>
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
impl CapeSmartPointer for CapeThermoMaterial
type Interface = _CAPEOPEN_1_2_ICapeThermoMaterial
Source§fn as_cape_interface_pointer(&self) -> *mut ICapeInterface
fn as_cape_interface_pointer(&self) -> *mut ICapeInterface
Get the ICapeInterface Read more
Source§fn get_interface_id() -> &'static CapeUUID
fn get_interface_id() -> &'static CapeUUID
Get the interface ID Read more
Source§fn from_object<T: CapeSmartPointer>(
smart_pointer: &T,
) -> Result<Self, COBIAError>
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
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
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
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>
fn from_cape_interface_pointer( interface: *mut ICapeInterface, ) -> Result<Self, COBIAError>
Get an interface wrapper instance from any interface pointer Read more
Source§impl Clone for CapeThermoMaterial
impl Clone for CapeThermoMaterial
Auto Trait Implementations§
impl Freeze for CapeThermoMaterial
impl RefUnwindSafe for CapeThermoMaterial
impl !Send for CapeThermoMaterial
impl !Sync for CapeThermoMaterial
impl Unpin for CapeThermoMaterial
impl UnwindSafe for CapeThermoMaterial
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more