[−][src]Trait holochain_wasmer_host::prelude::types::WasmExternType
A trait to represent a wasm extern type.
Associated Types
type Native: NativeWasmType
[src]
Native wasm type for this WasmExternType
.
Required methods
pub fn from_native(native: Self::Native) -> Self
[src]
Convert from given Native
type to self.
pub fn to_native(self) -> Self::Native
[src]
Convert self to Native
type.
Implementations on Foreign Types
impl WasmExternType for f32
[src]
type Native = f32
pub fn from_native(native: <f32 as WasmExternType>::Native) -> f32
[src]
pub fn to_native(self) -> <f32 as WasmExternType>::Native
[src]
impl WasmExternType for f64
[src]
type Native = f64
pub fn from_native(native: <f64 as WasmExternType>::Native) -> f64
[src]
pub fn to_native(self) -> <f64 as WasmExternType>::Native
[src]
impl WasmExternType for u16
[src]
type Native = i32
pub fn from_native(native: <u16 as WasmExternType>::Native) -> u16
[src]
pub fn to_native(self) -> <u16 as WasmExternType>::Native
[src]
impl WasmExternType for u8
[src]
type Native = i32
pub fn from_native(native: <u8 as WasmExternType>::Native) -> u8
[src]
pub fn to_native(self) -> <u8 as WasmExternType>::Native
[src]
impl WasmExternType for i32
[src]
type Native = i32
pub fn from_native(native: <i32 as WasmExternType>::Native) -> i32
[src]
pub fn to_native(self) -> <i32 as WasmExternType>::Native
[src]
impl WasmExternType for u32
[src]
type Native = i32
pub fn from_native(native: <u32 as WasmExternType>::Native) -> u32
[src]
pub fn to_native(self) -> <u32 as WasmExternType>::Native
[src]
impl WasmExternType for i8
[src]
type Native = i32
pub fn from_native(native: <i8 as WasmExternType>::Native) -> i8
[src]
pub fn to_native(self) -> <i8 as WasmExternType>::Native
[src]
impl WasmExternType for i16
[src]
type Native = i32
pub fn from_native(native: <i16 as WasmExternType>::Native) -> i16
[src]
pub fn to_native(self) -> <i16 as WasmExternType>::Native
[src]
impl WasmExternType for i64
[src]
type Native = i64
pub fn from_native(native: <i64 as WasmExternType>::Native) -> i64
[src]
pub fn to_native(self) -> <i64 as WasmExternType>::Native
[src]
impl WasmExternType for u64
[src]
type Native = i64
pub fn from_native(native: <u64 as WasmExternType>::Native) -> u64
[src]
pub fn to_native(self) -> <u64 as WasmExternType>::Native
[src]
Implementors
impl<T, Ty> WasmExternType for WasmPtr<T, Ty> where
T: Copy,
[src]
T: Copy,
type Native = i32
pub fn to_native(self) -> <WasmPtr<T, Ty> as WasmExternType>::Native
[src]
pub fn from_native(
n: <WasmPtr<T, Ty> as WasmExternType>::Native
) -> WasmPtr<T, Ty>
[src]
n: <WasmPtr<T, Ty> as WasmExternType>::Native
) -> WasmPtr<T, Ty>