pub struct Registers {
pub pc: usize,
pub sp: usize,
pub fp: usize,
}Expand description
Registers for a VM.
Fields§
§pc: usizeProgram Counter
PC points to a next instruction.
sp: usizeStack Pointer
SP points to the top of a stack.
fp: usizeFrame Pointer
FP points to the top of a stack frame.
Auto Trait Implementations§
impl Freeze for Registers
impl RefUnwindSafe for Registers
impl Send for Registers
impl Sync for Registers
impl Unpin for Registers
impl UnwindSafe for Registers
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