[−][src]Struct lovm2::vm::Vm
virtual machine for running bytecode
Implementations
impl Vm
[src]
pub fn new() -> Self
[src]
pub fn context_mut(&mut self) -> &mut Context
[src]
pub fn load_and_import_all<T>(&mut self, module: T) -> Result<(), String> where
T: Into<Box<dyn ModuleProtocol>>,
[src]
T: Into<Box<dyn ModuleProtocol>>,
pub fn run_object(&mut self, co: &dyn CallProtocol) -> Result<(), String>
[src]
a wrapper for run_bytecode
that handles pushing and popping stack frames
pub fn run(&mut self) -> Result<(), String>
[src]
start the execution at ENTRY_POINT
Auto Trait Implementations
impl !RefUnwindSafe for Vm
impl !Send for Vm
impl !Sync for Vm
impl Unpin for Vm
impl !UnwindSafe for Vm
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,