[−][src]Trait wasmer_runtime::types::WasmExternType
A trait to represent a wasm extern type.
Associated Types
type Native: NativeWasmType
Native wasm type for this WasmExternType.
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.
Implementations on Foreign Types
impl WasmExternType for i16[src]
type Native = i32
fn from_native(native: <i16 as WasmExternType>::Native) -> i16[src]
fn to_native(self) -> <i16 as WasmExternType>::Native[src]
impl WasmExternType for u32[src]
type Native = i32
fn from_native(native: <u32 as WasmExternType>::Native) -> u32[src]
fn to_native(self) -> <u32 as WasmExternType>::Native[src]
impl WasmExternType for i8[src]
type Native = i32
fn from_native(native: <i8 as WasmExternType>::Native) -> i8[src]
fn to_native(self) -> <i8 as WasmExternType>::Native[src]
impl WasmExternType for i64[src]
type Native = i64
fn from_native(native: <i64 as WasmExternType>::Native) -> i64[src]
fn to_native(self) -> <i64 as WasmExternType>::Native[src]
impl WasmExternType for i32[src]
type Native = i32
fn from_native(native: <i32 as WasmExternType>::Native) -> i32[src]
fn to_native(self) -> <i32 as WasmExternType>::Native[src]
impl WasmExternType for f64[src]
type Native = f64
fn from_native(native: <f64 as WasmExternType>::Native) -> f64[src]
fn to_native(self) -> <f64 as WasmExternType>::Native[src]
impl WasmExternType for u16[src]
type Native = i32
fn from_native(native: <u16 as WasmExternType>::Native) -> u16[src]
fn to_native(self) -> <u16 as WasmExternType>::Native[src]
impl WasmExternType for u8[src]
type Native = i32
fn from_native(native: <u8 as WasmExternType>::Native) -> u8[src]
fn to_native(self) -> <u8 as WasmExternType>::Native[src]
impl WasmExternType for u64[src]
type Native = i64
fn from_native(native: <u64 as WasmExternType>::Native) -> u64[src]
fn to_native(self) -> <u64 as WasmExternType>::Native[src]
impl WasmExternType for f32[src]
type Native = f32
fn from_native(native: <f32 as WasmExternType>::Native) -> f32[src]
fn to_native(self) -> <f32 as WasmExternType>::Native[src]
Implementors
impl<T, Ty> WasmExternType for WasmPtr<T, Ty> where
T: Copy, [src]
T: Copy,