Skip to main content

IntoFFIValue

Trait IntoFFIValue 

Source
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§

Source

type Destructor

Destructor for the value passed into into_ffi_value.

Required Methods§

Source

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".

Implementors§