pub trait IntoFFIValue: RIType {
type Destructor;
// Required method
fn into_ffi_value(
value: &mut Self::Inner,
) -> (Self::FFIType, Self::Destructor);
}
Expand description
A type used as a parameter in a host function. Can be turned into an FFI value.
Required Associated Types§
Sourcetype Destructor
type Destructor
Destructor for the value passed into into_ffi_value
.
Required Methods§
Sourcefn into_ffi_value(value: &mut Self::Inner) -> (Self::FFIType, Self::Destructor)
fn into_ffi_value(value: &mut Self::Inner) -> (Self::FFIType, Self::Destructor)
Convert Self::Inner
into an FFI type, with an optional destructor.
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.