[−][src]Struct witx_gen::WasmValuePtr
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]
fn clone(&self) -> WasmValuePtr<T>[src]
fn clone_from(&mut self, source: &Self)1.0.0[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.
fn from_native(native: Self::Native) -> Self[src]
fn to_native(self) -> Self::Native[src]
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]
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,