Trait sp_runtime_interface::host::FromFFIValue [−][src]
pub trait FromFFIValue: RIType { type SelfInstance; fn from_ffi_value(
context: &mut dyn FunctionContext,
arg: Self::FFIType
) -> Result<Self::SelfInstance>; }
Expand description
Something that can be created from a ffi value.
Implementations are safe to assume that the arg
given to from_ffi_value
is only generated by the corresponding wasm::IntoFFIValue
implementation.
Associated Types
type SelfInstance
type SelfInstance
As Self
can be an unsized type, it needs to be represented by a sized type at the host.
This SelfInstance
is the sized type.
Required methods
fn from_ffi_value(
context: &mut dyn FunctionContext,
arg: Self::FFIType
) -> Result<Self::SelfInstance>
fn from_ffi_value(
context: &mut dyn FunctionContext,
arg: Self::FFIType
) -> Result<Self::SelfInstance>
Create SelfInstance
from the given
Implementations on Foreign Types
type SelfInstance = u8
type SelfInstance = u16
type SelfInstance = u32
type SelfInstance = u64
type SelfInstance = i8
type SelfInstance = i16
type SelfInstance = i32
type SelfInstance = i64
type SelfInstance = bool
type SelfInstance = Vec<T>
type SelfInstance = Vec<T>
type SelfInstance = [u8; 1]
type SelfInstance = [u8; 2]
type SelfInstance = [u8; 3]
type SelfInstance = [u8; 4]
type SelfInstance = [u8; 5]
type SelfInstance = [u8; 6]
type SelfInstance = [u8; 7]
type SelfInstance = [u8; 8]
type SelfInstance = [u8; 9]
type SelfInstance = [u8; 10]
type SelfInstance = [u8; 11]
type SelfInstance = [u8; 12]
type SelfInstance = [u8; 13]
type SelfInstance = [u8; 14]
type SelfInstance = [u8; 15]
type SelfInstance = [u8; 16]
type SelfInstance = [u8; 17]
type SelfInstance = [u8; 18]
type SelfInstance = [u8; 19]
type SelfInstance = [u8; 20]
type SelfInstance = [u8; 21]
type SelfInstance = [u8; 22]
type SelfInstance = [u8; 23]
type SelfInstance = [u8; 24]
type SelfInstance = [u8; 25]
type SelfInstance = [u8; 26]
type SelfInstance = [u8; 27]
type SelfInstance = [u8; 28]
type SelfInstance = [u8; 29]
type SelfInstance = [u8; 30]
type SelfInstance = [u8; 31]
type SelfInstance = [u8; 32]
type SelfInstance = [u8; 33]
type SelfInstance = [u8; 34]
type SelfInstance = [u8; 35]
type SelfInstance = [u8; 36]
type SelfInstance = [u8; 37]
type SelfInstance = [u8; 38]
type SelfInstance = [u8; 39]
type SelfInstance = [u8; 40]
type SelfInstance = [u8; 41]
type SelfInstance = [u8; 42]
type SelfInstance = [u8; 43]
type SelfInstance = [u8; 44]
type SelfInstance = [u8; 45]
type SelfInstance = [u8; 46]
type SelfInstance = [u8; 47]
type SelfInstance = [u8; 48]
type SelfInstance = [u8; 49]
type SelfInstance = [u8; 50]
type SelfInstance = [u8; 51]
type SelfInstance = [u8; 52]
type SelfInstance = [u8; 53]
type SelfInstance = [u8; 54]
type SelfInstance = [u8; 55]
type SelfInstance = [u8; 56]
type SelfInstance = [u8; 57]
type SelfInstance = [u8; 58]
type SelfInstance = [u8; 59]
type SelfInstance = [u8; 60]
type SelfInstance = [u8; 61]
type SelfInstance = [u8; 62]
type SelfInstance = [u8; 63]
type SelfInstance = [u8; 64]
type SelfInstance = [u8; 65]
type SelfInstance = [u8; 66]
type SelfInstance = [u8; 67]
type SelfInstance = [u8; 68]
type SelfInstance = [u8; 69]
type SelfInstance = [u8; 70]
type SelfInstance = [u8; 71]
type SelfInstance = [u8; 72]
type SelfInstance = [u8; 73]
type SelfInstance = [u8; 74]
type SelfInstance = [u8; 75]
type SelfInstance = [u8; 76]
type SelfInstance = [u8; 77]
type SelfInstance = [u8; 78]
type SelfInstance = [u8; 79]
type SelfInstance = [u8; 80]
type SelfInstance = [u8; 81]
type SelfInstance = [u8; 82]
type SelfInstance = [u8; 83]
type SelfInstance = [u8; 84]
type SelfInstance = [u8; 85]
type SelfInstance = [u8; 86]
type SelfInstance = [u8; 87]
type SelfInstance = [u8; 88]
type SelfInstance = [u8; 89]
type SelfInstance = [u8; 90]
type SelfInstance = [u8; 91]
type SelfInstance = [u8; 92]
type SelfInstance = [u8; 93]
type SelfInstance = [u8; 94]
type SelfInstance = [u8; 95]
type SelfInstance = [u8; 96]
type SelfInstance = String
type SelfInstance = u128
type SelfInstance = i128