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.
impl<'a, Constant, Value: Debug> Machine<'a, Constant, Value>
impl<'a, Constant, Value> Send for Machine<'a, Constant, Value> where
Constant: Sync,
Value: Send,
impl<'a, Constant, Value> Sync for Machine<'a, Constant, Value> where
Constant: Sync,
Value: Sync,
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.