Enum witnext::WitxInstruction[][src]

pub enum WitxInstruction<'a> {
    AddrOf,
    I32FromPointer,
    I32FromConstPointer,
    PointerFromI32 {
        ty: &'a TypeRef,
    },
    ConstPointerFromI32 {
        ty: &'a TypeRef,
    },
    ReuseReturn,
}

Variants

AddrOf

Takes the value off the top of the stack and writes it into linear memory. Pushes the address in linear memory as an i32.

I32FromPointer

Converts a language-specific pointer value to a wasm i32.

I32FromConstPointer

Converts a language-specific pointer value to a wasm i32.

PointerFromI32

Converts a core wasm i32 to a language-specific pointer.

Show fields

Fields of PointerFromI32

ty: &'a TypeRef
ConstPointerFromI32

Converts a core wasm i32 to a language-specific pointer.

Show fields

Fields of ConstPointerFromI32

ty: &'a TypeRef
ReuseReturn

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

How many operands does this instruction pop from the stack?

How many results does this instruction push onto the stack?

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.