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 u64

source§

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

source§

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

source§

impl IntoFFIValue for i64

source§

impl IntoFFIValue for i32

source§

impl IntoFFIValue for i128

source§

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

source§

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

source§

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

source§

impl IntoFFIValue for i16

source§

impl IntoFFIValue for u128

source§

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

source§

impl IntoFFIValue for u32

source§

impl IntoFFIValue for i8

source§

impl IntoFFIValue for u16

source§

impl IntoFFIValue for u8

source§

impl IntoFFIValue for bool

Implementors§