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

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

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

Create Self from the given ffi value.

Implementors