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

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

Create SelfInstance from the given

Implementations on Foreign Types