struct VmState {
stack_top: usize,
stack_max: usize,
ip: *const u8,
current_ip: *const u8,
this_fn: Option<Value>,
on_error: Option<Value>,
defers: Vec<Value>,
}
Expand description
Hold state of the VM, this is for making re-entrant calls on the VM.
Fields§
§stack_top: usize
§stack_max: usize
§ip: *const u8
§current_ip: *const u8
§this_fn: Option<Value>
§on_error: Option<Value>
§defers: Vec<Value>
Auto Trait Implementations§
impl Freeze for VmState
impl RefUnwindSafe for VmState
impl !Send for VmState
impl !Sync for VmState
impl Unpin for VmState
impl UnwindSafe for VmState
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