pub struct Vm<H: Handler> { /* private fields */ }
Implementations§
Source§impl<H: Handler> Vm<H>
impl<H: Handler> Vm<H>
pub fn new(handler: H) -> Self
pub fn exec(&mut self, code: &Code) -> Result<(), Val>
pub fn run_tests(&mut self, prefixes: &Vec<RcStr>) -> Result<(), Val>
pub fn exec_and_run_tests( &mut self, code: &Code, prefixes: &Vec<RcStr>, ) -> Result<(), Val>
pub fn trace(&self) -> &Vec<Mark>
Auto Trait Implementations§
impl<H> Freeze for Vm<H>where
H: Freeze,
impl<H> !RefUnwindSafe for Vm<H>
impl<H> !Send for Vm<H>
impl<H> !Sync for Vm<H>
impl<H> Unpin for Vm<H>where
H: Unpin,
impl<H> !UnwindSafe for Vm<H>
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