referrerpolicy=no-referrer-when-downgrade

Trait sp_runtime_interface::host::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

source§

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

source§

impl IntoFFIValue for i8

source§

fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<i32>

source§

impl IntoFFIValue for i16

source§

fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<i32>

source§

impl IntoFFIValue for i32

source§

fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<i32>

source§

impl IntoFFIValue for i64

source§

fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<i64>

source§

impl IntoFFIValue for i128

source§

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

source§

impl IntoFFIValue for u8

source§

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

source§

impl IntoFFIValue for u16

source§

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

source§

impl IntoFFIValue for u32

source§

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

source§

impl IntoFFIValue for u64

source§

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

source§

impl IntoFFIValue for u128

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<const N: usize> IntoFFIValue for [u8; N]

source§

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

Implementors§

source§

impl<T: PassBy> IntoFFIValue for T

source§

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