pub enum EReg<Type> {
Show 16 variants
Zero = 0,
Ra = 1,
Sp = 2,
Gp = 3,
Tp = 4,
T0 = 5,
T1 = 6,
T2 = 7,
S0 = 8,
S1 = 9,
A0 = 10,
A1 = 11,
A2 = 12,
A3 = 13,
A4 = 14,
A5 = 15,
// some variants omitted
}Expand description
RISC-V register for RV32E/RV64E.
Use Type = u32 for RV32E and Type = u64 for RV64E.
Variants§
Zero = 0
Always zero: x0
Ra = 1
Return address: x1
Sp = 2
Stack pointer: x2
Gp = 3
Global pointer: x3
Tp = 4
Thread pointer: x4
T0 = 5
Temporary/alternate return address: x5
T1 = 6
Temporary: x6
T2 = 7
Temporary: x7
S0 = 8
Saved register/frame pointer: x8
S1 = 9
Saved register: x9
A0 = 10
Function argument/return value: x10
A1 = 11
Function argument/return value: x11
A2 = 12
Function argument: x12
A3 = 13
Function argument: x13
A4 = 14
Function argument: x14
A5 = 15
Function argument: x15
Trait Implementations§
impl<Type: Copy> Copy for EReg<Type>
impl<Type> Eq for EReg<Type>
Auto Trait Implementations§
impl<Type> Freeze for EReg<Type>
impl<Type> RefUnwindSafe for EReg<Type>where
Type: RefUnwindSafe,
impl<Type> Send for EReg<Type>where
Type: Send,
impl<Type> Sync for EReg<Type>where
Type: Sync,
impl<Type> Unpin for EReg<Type>where
Type: Unpin,
impl<Type> UnwindSafe for EReg<Type>where
Type: UnwindSafe,
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