Struct extendable_vm::Machine[][src]

pub struct Machine<'a, Constant, Value: Debug> {
    pub code: &'a Code<Constant>,
    pub globals: HashMap<String, Value>,
    // some fields omitted
}
Expand description

The entire state of the VM

State contains the code that the VM is executing and a hashmap of all global variables.

Fields

code: &'a Code<Constant>globals: HashMap<String, Value>

Implementations

Trait Implementations

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.