[][src]Trait sp_runtime_interface::wasm::FromFFIValue

pub trait FromFFIValue: Sized + RIType {
    pub fn from_ffi_value(arg: Self::FFIType) -> Self;
}

Something that can be created from a ffi value.

Safety

It is unsafe behavior to call Something::into_ffi_value().get() and take this as input for from_ffi_value. Implementations are safe to assume that the arg given to from_ffi_value is only generated by the corresponding host::IntoFFIValue implementation.

Required methods

pub fn from_ffi_value(arg: Self::FFIType) -> Self[src]

Create Self from the given ffi value.

Loading content...

Implementors

Loading content...