[][src]Trait wasmer_runtime_core::types::WasmExternType

pub unsafe trait WasmExternType: Copy where
    Self: Sized
{ 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 i8[src]

type Native = i32

impl WasmExternType for u8[src]

type Native = i32

impl WasmExternType for i16[src]

type Native = i32

impl WasmExternType for u16[src]

type Native = i32

impl WasmExternType for i32[src]

type Native = i32

impl WasmExternType for u32[src]

type Native = i32

impl WasmExternType for i64[src]

type Native = i64

impl WasmExternType for u64[src]

type Native = i64

impl WasmExternType for f32[src]

type Native = f32

impl WasmExternType for f64[src]

type Native = f64

Loading content...

Implementors

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

type Native = i32

Loading content...