pub struct Reg(/* private fields */);
Expand description
A struct for representing a general purpose register (eg, x0
, x1
, …, x32
).
This is used in the Instruction
enum to distinguish
the source and destination registers from other numeric data contained in an instruction.
Trait Implementations§
impl Copy for Reg
impl Eq for Reg
impl StructuralEq for Reg
impl StructuralPartialEq for Reg
Auto Trait Implementations§
impl RefUnwindSafe for Reg
impl Send for Reg
impl Sync for Reg
impl Unpin for Reg
impl UnwindSafe for Reg
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