Enum witnext::WitxInstruction [−][src]
Variants
Takes the value off the top of the stack and writes it into linear
memory. Pushes the address in linear memory as an i32
.
Converts a language-specific pointer value to a wasm i32
.
Converts a language-specific pointer value to a wasm i32
.
Converts a native wasm i32
to a language-specific pointer.
Fields of PointerFromI32
ty: &'a TypeRef
Converts a native wasm i32
to a language-specific pointer.
Fields of ConstPointerFromI32
ty: &'a TypeRef
This is a special instruction specifically for the original ABI of
WASI. The raw return i32
of a function is re-pushed onto the
stack for reuse.
Implementations
impl WitxInstruction<'_>
[src]
pub fn operands_len(&self) -> usize
[src]
How many operands does this instruction pop from the stack?
pub fn results_len(&self) -> usize
[src]
How many results does this instruction push onto the stack?
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for WitxInstruction<'a>
impl<'a> !Send for WitxInstruction<'a>
impl<'a> !Sync for WitxInstruction<'a>
impl<'a> Unpin for WitxInstruction<'a>
impl<'a> !UnwindSafe for WitxInstruction<'a>
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,
pub 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, 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.
pub 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>,