[][src]Struct witx_gen::WasmSlicePtr

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

Pointer to a WASM slice.

Methods

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

pub fn with(self, memory: &Memory, length: u32) -> WasmMemorySlice<T>[src]

Get the slice of WASM memory associated with this pointer from the specified memory, with the specified length.

pub fn add(self, offset: u32) -> WasmSlicePtr<T>[src]

Adds an offset to this pointer.

Trait Implementations

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

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

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

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

type Native = i32

Native wasm type for this WasmExternType.

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

Auto Trait Implementations

impl<T> RefUnwindSafe for WasmSlicePtr<T>

impl<T> Send for WasmSlicePtr<T>

impl<T> Sync for WasmSlicePtr<T>

impl<T> Unpin for WasmSlicePtr<T>

impl<T> UnwindSafe for WasmSlicePtr<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.