[−][src]Struct witx_gen::WasmSlicePtr
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]
fn clone(&self) -> WasmSlicePtr<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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
.
fn from_native(native: Self::Native) -> Self
[src]
fn to_native(self) -> Self::Native
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<Rets> TrapEarly<Rets> for Rets where
Rets: WasmTypeList,
[src]
Rets: WasmTypeList,
type Error = Infallible
The error type for this trait.
fn report(self) -> Result<Rets, Infallible>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<A> WasmTypeList for A where
A: WasmExternType,
[src]
A: WasmExternType,
type CStruct = S1<A>
CStruct type.
type RetArray = [u64; 1]
Array of return values.
fn from_ret_array(array: <A as WasmTypeList>::RetArray) -> A
[src]
fn empty_ret_array() -> <A as WasmTypeList>::RetArray
[src]
fn from_c_struct(c_struct: <A as WasmTypeList>::CStruct) -> A
[src]
fn into_c_struct(self) -> <A as WasmTypeList>::CStruct
[src]
fn types() -> &'static [Type]
[src]
unsafe fn call<Rets>(
self,
f: NonNull<Func>,
wasm: Wasm,
ctx: *mut Ctx
) -> Result<Rets, RuntimeError> where
Rets: WasmTypeList,
[src]
self,
f: NonNull<Func>,
wasm: Wasm,
ctx: *mut Ctx
) -> Result<Rets, RuntimeError> where
Rets: WasmTypeList,