IntoFFIValue

Trait IntoFFIValue 

Source
pub trait IntoFFIValue: RIType {
    // Required method
    fn into_ffi_value(
        self,
        context: &mut dyn FunctionContext,
    ) -> Result<Self::FFIType>;
}
Expand description

Something that can be converted into a ffi value.

Required Methods§

Source

fn into_ffi_value( self, context: &mut dyn FunctionContext, ) -> Result<Self::FFIType>

Convert self into a ffi value.

Implementations on Foreign Types§

Source§

impl IntoFFIValue for bool

Available on crate feature std only.
Source§

impl IntoFFIValue for i8

Available on crate feature std only.
Source§

impl IntoFFIValue for i16

Available on crate feature std only.
Source§

impl IntoFFIValue for i32

Available on crate feature std only.
Source§

impl IntoFFIValue for i64

Available on crate feature std only.
Source§

impl IntoFFIValue for i128

Available on crate feature std only.
Source§

fn into_ffi_value(self, context: &mut dyn FunctionContext) -> Result<u32>

Source§

impl IntoFFIValue for u8

Available on crate feature std only.
Source§

impl IntoFFIValue for u16

Available on crate feature std only.
Source§

impl IntoFFIValue for u32

Available on crate feature std only.
Source§

impl IntoFFIValue for u64

Available on crate feature std only.
Source§

impl IntoFFIValue for u128

Available on crate feature std only.
Source§

fn into_ffi_value(self, context: &mut dyn FunctionContext) -> Result<u32>

Source§

impl<T: 'static + Encode> IntoFFIValue for Vec<T>

Available on crate feature std only.
Source§

fn into_ffi_value(self, context: &mut dyn FunctionContext) -> Result<u64>

Source§

impl<const N: usize> IntoFFIValue for [u8; N]

Available on crate feature std only.
Source§

fn into_ffi_value(self, context: &mut dyn FunctionContext) -> Result<u32>

Implementors§

Source§

impl<T: PassBy> IntoFFIValue for T

Available on crate feature std only.
Source§

impl<T: PointerType> IntoFFIValue for Pointer<T>

Available on crate feature std only.