#[repr(u8)]pub enum XReg {
Show 32 variants
x0 = 0,
x1 = 1,
x2 = 2,
x3 = 3,
x4 = 4,
x5 = 5,
x6 = 6,
x7 = 7,
x8 = 8,
x9 = 9,
x10 = 10,
x11 = 11,
x12 = 12,
x13 = 13,
x14 = 14,
x15 = 15,
x16 = 16,
x17 = 17,
x18 = 18,
x19 = 19,
x20 = 20,
x21 = 21,
x22 = 22,
x23 = 23,
x24 = 24,
x25 = 25,
x26 = 26,
x27 = 27,
x28 = 28,
x29 = 29,
sp = 30,
spilltmp0 = 31,
}
Expand description
An x
register: integers.
Variants§
x0 = 0
x1 = 1
x2 = 2
x3 = 3
x4 = 4
x5 = 5
x6 = 6
x7 = 7
x8 = 8
x9 = 9
x10 = 10
x11 = 11
x12 = 12
x13 = 13
x14 = 14
x15 = 15
x16 = 16
x17 = 17
x18 = 18
x19 = 19
x20 = 20
x21 = 21
x22 = 22
x23 = 23
x24 = 24
x25 = 25
x26 = 26
x27 = 27
x28 = 28
x29 = 29
sp = 30
The special sp
stack pointer register.
spilltmp0 = 31
The special spilltmp0
scratch register.
Implementations§
Source§impl XReg
impl XReg
Sourcepub const SPECIAL_START: u8 = 30u8
pub const SPECIAL_START: u8 = 30u8
Index of the first “special” register.
Sourcepub fn is_special(self) -> bool
pub fn is_special(self) -> bool
Is this x
register a special register?
Trait Implementations§
Source§impl Index<XReg> for MachineState
impl Index<XReg> for MachineState
Source§impl IndexMut<XReg> for MachineState
impl IndexMut<XReg> for MachineState
Source§impl Ord for XReg
impl Ord for XReg
Source§impl PartialOrd for XReg
impl PartialOrd for XReg
Source§impl Reg for XReg
impl Reg for XReg
impl Copy for XReg
impl Eq for XReg
impl StructuralPartialEq for XReg
Auto Trait Implementations§
impl Freeze for XReg
impl RefUnwindSafe for XReg
impl Send for XReg
impl Sync for XReg
impl Unpin for XReg
impl UnwindSafe for XReg
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