[][src]Struct witx_gen::WasmValuePtr

pub struct WasmValuePtr<T: WasmValue> { /* fields omitted */ }

Pointer to a WASM value.

Methods

impl<T: WasmValue> WasmValuePtr<T>[src]

pub fn read(self, memory: &Memory) -> T[src]

Reads the value from WASM memory.

pub fn write(self, memory: &Memory, value: T)[src]

Writes the value to WASM memory.

Trait Implementations

impl<T: Clone + WasmValue> Clone for WasmValuePtr<T>[src]

impl<T: Copy + WasmValue> Copy for WasmValuePtr<T>[src]

impl<T: Debug + WasmValue> Debug for WasmValuePtr<T>[src]

impl<T: WasmValue> WasmExternType for WasmValuePtr<T>[src]

type Native = i32

Native wasm type for this WasmExternType.

impl<T: WasmValue> WasmValue for WasmValuePtr<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for WasmValuePtr<T>

impl<T> Send for WasmValuePtr<T>

impl<T> Sync for WasmValuePtr<T>

impl<T> Unpin for WasmValuePtr<T>

impl<T> UnwindSafe for WasmValuePtr<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<Rets> TrapEarly<Rets> for Rets where
    Rets: WasmTypeList
[src]

type Error = Infallible

The error type for this trait.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<A> WasmTypeList for A where
    A: WasmExternType
[src]

type CStruct = S1<A>

CStruct type.

type RetArray = [u64; 1]

Array of return values.