[][src]Struct lovm2::vm::Vm

pub struct Vm { /* fields omitted */ }

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.