[][src]Trait holochain_wasmer_host::prelude::types::WasmExternType

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

A trait to represent a wasm extern type.

Associated Types

type Native: NativeWasmType[src]

Native wasm type for this WasmExternType.

Loading content...

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.

Loading content...

Implementations on Foreign Types

impl WasmExternType for f32[src]

type Native = f32

impl WasmExternType for f64[src]

type Native = f64

impl WasmExternType for u16[src]

type Native = i32

impl WasmExternType for u8[src]

type Native = i32

impl WasmExternType for i32[src]

type Native = i32

impl WasmExternType for u32[src]

type Native = i32

impl WasmExternType for i8[src]

type Native = i32

impl WasmExternType for i16[src]

type Native = i32

impl WasmExternType for i64[src]

type Native = i64

impl WasmExternType for u64[src]

type Native = i64

Loading content...

Implementors

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

type Native = i32

Loading content...