Struct interpreter::VM
source · pub struct VM {
pub class_loader: ClassLoader,
pub frames: Vec<Frame>,
pub main_thread: RefTo<Object>,
}
Fields§
§class_loader: ClassLoader
§frames: Vec<Frame>
§main_thread: RefTo<Object>
Implementations§
source§impl VM
impl VM
pub fn run( &mut self, ctx: Context ) -> Result<Option<RuntimeValue>, (Throwable, ThrownState)>
pub fn initialise_class(&mut self, class: RefTo<Class>) -> Result<(), Throwable>
pub fn main_thread(&self) -> RefTo<Object>
pub fn make_error(&mut self, ty: VMError) -> Result<Throwable, Throwable>
pub fn bootstrap(&mut self) -> Result<(), Throwable>
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§
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