#[repr(u32)]pub enum Reg {
Show 13 variants
RA = 0,
SP = 1,
T0 = 2,
T1 = 3,
T2 = 4,
S0 = 5,
S1 = 6,
A0 = 7,
A1 = 8,
A2 = 9,
A3 = 10,
A4 = 11,
A5 = 12,
}
Variants§
Implementations§
Source§impl Reg
impl Reg
pub const MAXIMUM_INPUT_REGS: usize = 9usize
pub const MAXIMUM_OUTPUT_REGS: usize = 2usize
pub const fn to_usize(self) -> usize
pub const fn to_u32(self) -> u32
pub const fn raw(self) -> RawReg
pub const fn from_raw(value: u32) -> Option<Reg>
pub const fn name(self) -> &'static str
pub const fn name_non_abi(self) -> &'static str
Trait Implementations§
impl Copy for Reg
impl Eq for Reg
impl StructuralPartialEq for Reg
Auto Trait Implementations§
impl Freeze for Reg
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