Trait wasmer::NativeWasmTypeInto
source · pub trait NativeWasmTypeInto: NativeWasmType + Sized {
// Required methods
fn into_raw(self, store: &mut impl AsStoreMut) -> RawValue;
unsafe fn from_raw(store: &mut impl AsStoreMut, raw: RawValue) -> Self;
}
Expand description
NativeWasmTypeInto
performs conversions from and into NativeWasmType
types with a context.
Required Methods§
sourcefn into_raw(self, store: &mut impl AsStoreMut) -> RawValue
fn into_raw(self, store: &mut impl AsStoreMut) -> RawValue
Convert self to raw value representation.
sourceunsafe fn from_raw(store: &mut impl AsStoreMut, raw: RawValue) -> Self
unsafe fn from_raw(store: &mut impl AsStoreMut, raw: RawValue) -> Self
Convert to self from raw value representation.
§Safety
Object Safety§
This trait is not object safe.