Struct pulley_interpreter::interp::MachineState
source · pub struct MachineState { /* private fields */ }
Available on crate feature
interp
only.Expand description
The machine state for a Pulley virtual machine: the various registers and stack.
Implementations§
source§impl MachineState
impl MachineState
sourcepub fn x(&self, x: XReg) -> &XRegVal
pub fn x(&self, x: XReg) -> &XRegVal
Get a shared reference to the value of the given x
register.
sourcepub fn x_mut(&mut self, x: XReg) -> &mut XRegVal
pub fn x_mut(&mut self, x: XReg) -> &mut XRegVal
Get an exclusive reference to the value of the given x
register.
sourcepub fn f(&self, f: FReg) -> &FRegVal
pub fn f(&self, f: FReg) -> &FRegVal
Get a shared reference to the value of the given f
register.
sourcepub fn f_mut(&mut self, f: FReg) -> &mut FRegVal
pub fn f_mut(&mut self, f: FReg) -> &mut FRegVal
Get an exclusive reference to the value of the given f
register.
sourcepub fn v(&self, v: VReg) -> &VRegVal
pub fn v(&self, v: VReg) -> &VRegVal
Get a shared reference to the value of the given v
register.
Trait Implementations§
source§impl Debug for MachineState
impl Debug for MachineState
impl Send for MachineState
impl Sync for MachineState
Auto Trait Implementations§
impl Freeze for MachineState
impl RefUnwindSafe for MachineState
impl Unpin for MachineState
impl UnwindSafe for MachineState
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