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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".