pub struct Vm { /* private fields */ }Implementations§
Source§impl Vm
impl Vm
pub fn instructions(&self) -> &[BinaryInstruction]
Source§impl Vm
impl Vm
pub fn new( instructions: Vec<BinaryInstruction>, constants: &[u8], memory_size: usize, ) -> Self
pub fn frame_offset(&self) -> usize
pub fn get_i32(&self, offset: usize) -> i32
pub fn load_bytecode(&mut self, instructions: Vec<BinaryInstruction>)
pub fn debug_opcode(&self, opcode: u8, operands: &[u16; 4])
pub fn execute(&mut self)
Trait Implementations§
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