[][src]Struct wasmer_runtime_core::memory::ptr::WasmPtr

#[repr(transparent)]
pub struct WasmPtr<T: Copy, Ty = Item> { /* fields omitted */ }

Methods

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

pub fn new(offset: u32) -> Self[src]

pub fn offset(self) -> u32[src]

impl<T: Copy + ValueType> WasmPtr<T, Item>[src]

pub fn deref<'a>(self, memory: &'a Memory) -> Option<&'a Cell<T>>[src]

impl<T: Copy + ValueType> WasmPtr<T, Array>[src]

pub fn deref<'a>(
    self,
    memory: &'a Memory,
    index: u32,
    length: u32
) -> Option<&'a [Cell<T>]>
[src]

Trait Implementations

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

type Native = i32

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

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

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

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

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

Auto Trait Implementations

impl<T, Ty> Send for WasmPtr<T, Ty> where
    T: Send,
    Ty: Send

impl<T, Ty> Sync for WasmPtr<T, Ty> where
    T: Sync,
    Ty: Sync

Blanket Implementations

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

type CStruct = S1<A>

type RetArray = [u64; 1]

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

type Error = Infallible

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]