pub struct Frame<'code> {
pub id: FrameId,
pub stack: Vec<ObjectRef>,
pub locals: &'code mut MemoryManager,
/* private fields */
}
Fields
id: FrameId
stack: Vec<ObjectRef>
locals: &'code mut MemoryManager
Implementations
sourceimpl<'code> Frame<'code>
impl<'code> Frame<'code>
pub fn new(
code: &'code [Op],
locals: &'code mut MemoryManager,
globals: Rc<GlobalContext>,
least_ancestors: HashMap<ContextId, FrameId>,
context_id: ContextId
) -> Self
pub fn rt_context(&mut self) -> RuntimeContext<'_>
pub fn run(&mut self) -> RuntimeResult<ObjectRef>
Trait Implementations
Auto Trait Implementations
impl<'code> !RefUnwindSafe for Frame<'code>
impl<'code> !Send for Frame<'code>
impl<'code> !Sync for Frame<'code>
impl<'code> Unpin for Frame<'code>
impl<'code> !UnwindSafe for Frame<'code>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more