pub struct VM {
pub modules_cache: Vec<ModuleChunk>,
pub modules_table: HashMap<String, usize>,
/* private fields */
}
Expand description
Contains all the information outputted by the compiler ie: All function and class definitions
Fields§
§modules_cache: Vec<ModuleChunk>
§modules_table: HashMap<String, usize>
Implementations§
Source§impl VM
impl VM
pub fn new(mode: ExecutionMode, result: CompilationResult, quiet: bool) -> VM
pub fn append(&mut self, result: CompilationResult)
pub fn run(&mut self) -> InterpretResult
pub fn run_state( &mut self, state: Option<VMState>, m: Vec<ModuleChunk>, ) -> InterpretResult
Auto Trait Implementations§
impl Freeze for VM
impl RefUnwindSafe for VM
impl Send for VM
impl Sync for VM
impl Unpin for VM
impl UnwindSafe for VM
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more