[][src]Trait wasmer_runtime::types::WasmExternType

pub unsafe trait WasmExternType: Copy {
    type Native: NativeWasmType;
    fn from_native(native: Self::Native) -> Self;
fn to_native(self) -> Self::Native; }

A trait to represent a wasm extern type.

Associated Types

type Native: NativeWasmType

Native wasm type for this WasmExternType.

Loading content...

Required methods

fn from_native(native: Self::Native) -> Self

Convert from given Native type to self.

fn to_native(self) -> Self::Native

Convert self to Native type.

Loading content...

Implementations on Foreign Types

impl WasmExternType for i64[src]

impl WasmExternType for i32[src]

impl WasmExternType for u16[src]

impl WasmExternType for f64[src]

impl WasmExternType for u64[src]

impl WasmExternType for f32[src]

impl WasmExternType for u8[src]

impl WasmExternType for i16[src]

impl WasmExternType for i8[src]

impl WasmExternType for u32[src]

Loading content...

Implementors

impl<T, Ty> WasmExternType for WasmPtr<T, Ty> where
    T: Copy
[src]

type Native = i32

Loading content...