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§

source

fn into_raw(self, store: &mut impl AsStoreMut) -> RawValue

Convert self to raw value representation.

source

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.

Implementations on Foreign Types§

source§

impl NativeWasmTypeInto for Option<ExternRef>

source§

fn into_raw(self, _store: &mut impl AsStoreMut) -> RawValue

source§

unsafe fn from_raw(store: &mut impl AsStoreMut, raw: RawValue) -> Self

source§

impl NativeWasmTypeInto for Option<Function>

source§

fn into_raw(self, store: &mut impl AsStoreMut) -> RawValue

source§

unsafe fn from_raw(store: &mut impl AsStoreMut, raw: RawValue) -> Self

source§

impl NativeWasmTypeInto for f32

source§

fn into_raw(self, _store: &mut impl AsStoreMut) -> RawValue

source§

unsafe fn from_raw(_store: &mut impl AsStoreMut, raw: RawValue) -> Self

source§

impl NativeWasmTypeInto for f64

source§

fn into_raw(self, _store: &mut impl AsStoreMut) -> RawValue

source§

unsafe fn from_raw(_store: &mut impl AsStoreMut, raw: RawValue) -> Self

source§

impl NativeWasmTypeInto for i32

source§

fn into_raw(self, _store: &mut impl AsStoreMut) -> RawValue

source§

unsafe fn from_raw(_store: &mut impl AsStoreMut, raw: RawValue) -> Self

source§

impl NativeWasmTypeInto for i64

source§

fn into_raw(self, _store: &mut impl AsStoreMut) -> RawValue

source§

unsafe fn from_raw(_store: &mut impl AsStoreMut, raw: RawValue) -> Self

source§

impl NativeWasmTypeInto for u32

source§

fn into_raw(self, _store: &mut impl AsStoreMut) -> RawValue

source§

unsafe fn from_raw(_store: &mut impl AsStoreMut, raw: RawValue) -> Self

source§

impl NativeWasmTypeInto for u64

source§

fn into_raw(self, _store: &mut impl AsStoreMut) -> RawValue

source§

unsafe fn from_raw(_store: &mut impl AsStoreMut, raw: RawValue) -> Self

source§

impl NativeWasmTypeInto for u128

source§

fn into_raw(self, _store: &mut impl AsStoreMut) -> RawValue

source§

unsafe fn from_raw(_store: &mut impl AsStoreMut, raw: RawValue) -> Self

Implementors§