#[non_exhaustive]pub enum Reg {
X(u8),
SpEl1,
Pc,
PState,
}Expand description
Reg enum — the registers the trait surface exposes get/set on.
Mirrors the spec in 11-runtime-core.md § 2: X0..X30, SP_EL1, PC, PSTATE.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
X(u8)
General-purpose register Xn where n ∈ 0..=30.
SpEl1
Stack pointer at EL1.
Pc
Program counter.
PState
Processor state register.
Implementations§
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 UnsafeUnpin 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