pub struct Frame { /* private fields */ }
Expand description
虚拟机执行帧。
包含变量表和操作数栈,代表一次函数调用或执行环境。
Implementations§
Source§impl Frame
impl Frame
pub fn new() -> Self
pub fn get_stack(&self) -> &Vec<OnionStaticObject>
pub fn get_stack_mut(&mut self) -> &mut Vec<OnionStaticObject>
pub fn format_context(&self, package: &VMInstructionPackage) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl !RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl !UnwindSafe for Frame
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