pub struct AArch64SysRegId(pub(crate) u16);Expand description
AArch64 system register as used in MSR/MRS instructions.
Tuple Fields§
§0: u16Implementations§
Source§impl AArch64SysRegId
impl AArch64SysRegId
Sourcepub fn new(op0: u8, op1: u8, crn: u8, crm: u8, op2: u8) -> Result<Self>
pub fn new(op0: u8, op1: u8, crn: u8, crm: u8, op2: u8) -> Result<Self>
Construct a system register ID from Op0, Op1, CRn, CRm, Op2.
The meanings of the arguments are described in the ARMv8 Architecture Reference Manual “System instruction class encoding overview” section.
Sourcepub const fn new_unchecked(op0: u8, op1: u8, crn: u8, crm: u8, op2: u8) -> Self
pub const fn new_unchecked(op0: u8, op1: u8, crn: u8, crm: u8, op2: u8) -> Self
Construct a system register ID from Op0, Op1, CRn, CRm, Op2.
Out-of-range values will be silently truncated.
pub fn from_encoded(v: u16) -> Self
pub const fn op0(&self) -> u8
pub const fn op1(&self) -> u8
pub const fn crn(&self) -> u8
pub const fn crm(&self) -> u8
pub const fn op2(&self) -> u8
Trait Implementations§
Source§impl Clone for AArch64SysRegId
impl Clone for AArch64SysRegId
Source§fn clone(&self) -> AArch64SysRegId
fn clone(&self) -> AArch64SysRegId
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AArch64SysRegId
impl Debug for AArch64SysRegId
Source§impl<'de> Deserialize<'de> for AArch64SysRegId
impl<'de> Deserialize<'de> for AArch64SysRegId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for AArch64SysRegId
impl Ord for AArch64SysRegId
Source§fn cmp(&self, other: &AArch64SysRegId) -> Ordering
fn cmp(&self, other: &AArch64SysRegId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AArch64SysRegId
impl PartialEq for AArch64SysRegId
Source§impl PartialOrd for AArch64SysRegId
impl PartialOrd for AArch64SysRegId
Source§impl Serialize for AArch64SysRegId
impl Serialize for AArch64SysRegId
impl Copy for AArch64SysRegId
impl Eq for AArch64SysRegId
impl StructuralPartialEq for AArch64SysRegId
Auto Trait Implementations§
impl Freeze for AArch64SysRegId
impl RefUnwindSafe for AArch64SysRegId
impl Send for AArch64SysRegId
impl Sync for AArch64SysRegId
impl Unpin for AArch64SysRegId
impl UnwindSafe for AArch64SysRegId
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