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§
Sourcefn into_ffi_value(
self,
context: &mut dyn FunctionContext,
) -> Result<Self::FFIType>
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.
impl IntoFFIValue for bool
Available on crate feature
std only.fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<u32>
Source§impl IntoFFIValue for i8
Available on crate feature std only.
impl IntoFFIValue for i8
Available on crate feature
std only.fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<i32>
Source§impl IntoFFIValue for i16
Available on crate feature std only.
impl IntoFFIValue for i16
Available on crate feature
std only.fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<i32>
Source§impl IntoFFIValue for i32
Available on crate feature std only.
impl IntoFFIValue for i32
Available on crate feature
std only.fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<i32>
Source§impl IntoFFIValue for i64
Available on crate feature std only.
impl IntoFFIValue for i64
Available on crate feature
std only.fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<i64>
Source§impl IntoFFIValue for i128
Available on crate feature std only.
impl IntoFFIValue for i128
Available on crate feature
std only.fn into_ffi_value(self, context: &mut dyn FunctionContext) -> Result<u32>
Source§impl IntoFFIValue for u8
Available on crate feature std only.
impl IntoFFIValue for u8
Available on crate feature
std only.fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<u32>
Source§impl IntoFFIValue for u16
Available on crate feature std only.
impl IntoFFIValue for u16
Available on crate feature
std only.fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<u32>
Source§impl IntoFFIValue for u32
Available on crate feature std only.
impl IntoFFIValue for u32
Available on crate feature
std only.fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<u32>
Source§impl IntoFFIValue for u64
Available on crate feature std only.
impl IntoFFIValue for u64
Available on crate feature
std only.fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<u64>
Source§impl IntoFFIValue for u128
Available on crate feature std only.
impl IntoFFIValue for u128
Available on crate feature
std only.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.
impl<T: 'static + Encode> IntoFFIValue for Vec<T>
Available on crate feature
std only.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.
impl<const N: usize> IntoFFIValue for [u8; N]
Available on crate feature
std only.fn into_ffi_value(self, context: &mut dyn FunctionContext) -> Result<u32>
Implementors§
impl<T: PassBy> IntoFFIValue for T
Available on crate feature
std only.impl<T: PointerType> IntoFFIValue for Pointer<T>
Available on crate feature
std only.