Struct aluvm::vm::Vm

source ·
pub struct Vm<Isa = Instr<ReservedOp>>where
    Isa: InstructionSet,
{ /* private fields */ }
Expand description

Alu virtual machine providing single-core execution environment

Implementations§

Method borrowing Vm::registers field. A set of registers

Method borrowing Vm::phantom field.

Runtime for program execution.

Constructs new virtual machine instance.

Executes the program starting from the provided entry point (set with Program::set_entrypoint and Program::with, or initialized to 0 offset of the first used library if Program::new was used).

Returns

Value of the st0 register at the end of the program execution.

Executes the program starting from the provided entry point.

Returns

Value of the st0 register at the end of the program execution.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.