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
pub fn new(
code: &'a Code<Constant>,
instruction_table: InstructionTable<'a, Constant, Value>
) -> Machine<'a, Constant, Value>
Trait Implementations
impl<'a, Constant, Value: Debug> ByteReadable<InstructionPointer> for Machine<'a, Constant, Value>
impl<'a, Constant, Value: Debug> ByteReadable<InstructionPointer> for Machine<'a, Constant, Value>
Auto Trait Implementations
impl<'a, Constant, Value> RefUnwindSafe for Machine<'a, Constant, Value> where
Constant: RefUnwindSafe,
Value: RefUnwindSafe,
impl<'a, Constant, Value> UnwindSafe for Machine<'a, Constant, Value> where
Constant: RefUnwindSafe,
Value: UnwindSafe,