pub struct VirtualMachine<'c> { /* private fields */ }
Implementations
sourceimpl<'c> VirtualMachine<'c>
impl<'c> VirtualMachine<'c>
sourcepub fn new(main_module: Gc<Module>, main_chunk: &'c [u8]) -> Self
pub fn new(main_module: Gc<Module>, main_chunk: &'c [u8]) -> Self
Create a new VM with the specified root module and an empty main chunk
pub fn frame(&self) -> &VMCallFrame<'_>
pub fn run(self) -> ExecResult<()>
pub fn run_steps(self) -> impl Iterator<Item = ExecResult<VMSnapshot>> + 'c
Trait Implementations
sourceimpl<'c> Debug for VirtualMachine<'c>
impl<'c> Debug for VirtualMachine<'c>
sourceimpl From<&'_ VirtualMachine<'_>> for VMSnapshot
impl From<&'_ VirtualMachine<'_>> for VMSnapshot
sourcefn from(vm: &VirtualMachine<'_>) -> Self
fn from(vm: &VirtualMachine<'_>) -> Self
Converts to this type from the input type.
sourceimpl GcTrace for VirtualMachine<'_>
impl GcTrace for VirtualMachine<'_>
Auto Trait Implementations
impl<'c> !RefUnwindSafe for VirtualMachine<'c>
impl<'c> !Send for VirtualMachine<'c>
impl<'c> !Sync for VirtualMachine<'c>
impl<'c> Unpin for VirtualMachine<'c>
impl<'c> !UnwindSafe for VirtualMachine<'c>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more