pub struct VM { /* private fields */ }
Implementations§
Source§impl VM
impl VM
pub fn new( module: Rc<Module>, breakpoints: Rc<RefCell<Breakpoints>>, ) -> Result<VM, InitError>
pub fn value_stack(&self) -> &[Value]
pub fn value_stack_mut(&mut self) -> &mut Vec<Value>
pub fn function_stack(&self) -> &[FunctionFrame]
pub fn label_stack(&self) -> &[Label]
pub fn trap(&self) -> Option<&Trap>
pub fn ip(&self) -> CodePosition
pub fn globals(&self) -> &[Value]
pub fn globals_mut(&mut self) -> &mut [Value]
pub fn memory(&self) -> &Memory
pub fn memory_mut(&mut self) -> &mut Memory
pub fn locals(&self) -> VMResult<&[Value]>
pub fn locals_mut(&mut self) -> VMResult<&mut [Value]>
pub fn start(&mut self) -> VMResult<()>
pub fn run(&mut self) -> Trap
pub fn run_func(&mut self, index: u32, args: &[Value]) -> Trap
pub fn continue_execution(&mut self) -> Trap
pub fn execute_step_over(&mut self) -> VMResult<()>
pub fn execute_step_out(&mut self) -> VMResult<()>
pub fn execute_step(&mut self) -> VMResult<()>
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