pub trait ICapeUnitImpl: ICapeUnit {
type T: ICapeInterfaceImpl + ICapeUnitImpl;
const VTABLE: CAPEOPEN_1_2_ICapeUnit_VTable = _;
// Required method
fn as_interface_pointer(&mut self) -> *mut ICapeInterface;
// Provided methods
fn init_interface() -> ICapeInterface { ... }
fn init<Timpl: ICapeUnitImpl + ICapeInterfaceImpl>(u: &mut Timpl) { ... }
extern "C" fn raw_ports(
me: *mut c_void,
ports: *mut *mut CAPEOPEN_1_2_ICapeCollection,
) -> CapeResult { ... }
extern "C" fn raw_get_val_status(
me: *mut c_void,
val_status: *mut CAPEOPEN_1_2_CapeValidationStatus,
) -> CapeResult { ... }
extern "C" fn raw_calculate(me: *mut c_void) -> CapeResult { ... }
extern "C" fn raw_validate(
me: *mut c_void,
message: *mut ICapeString,
is_valid: *mut CapeBoolean,
) -> CapeResult { ... }
}Provided Associated Constants§
const VTABLE: CAPEOPEN_1_2_ICapeUnit_VTable = _
Required Associated Types§
type T: ICapeInterfaceImpl + ICapeUnitImpl
Required Methods§
fn as_interface_pointer(&mut self) -> *mut ICapeInterface
Provided Methods§
Sourcefn init_interface() -> ICapeInterface
fn init_interface() -> ICapeInterface
prepare CAPEOPEN_1_2_ICapeUnit interface and return as generic ICapeInterface pointer
fn init<Timpl: ICapeUnitImpl + ICapeInterfaceImpl>(u: &mut Timpl)
extern "C" fn raw_ports( me: *mut c_void, ports: *mut *mut CAPEOPEN_1_2_ICapeCollection, ) -> CapeResult
extern "C" fn raw_get_val_status( me: *mut c_void, val_status: *mut CAPEOPEN_1_2_CapeValidationStatus, ) -> CapeResult
extern "C" fn raw_calculate(me: *mut c_void) -> CapeResult
extern "C" fn raw_validate( me: *mut c_void, message: *mut ICapeString, is_valid: *mut CapeBoolean, ) -> 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.