Struct aarch64_sys_reg::AArch64SysRegId
source · pub struct AArch64SysRegId(pub(crate) u16);
Expand description
AArch64 system register as used in MSR/MRS instructions.
Tuple Fields§
§0: u16
Implementations§
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§fn eq(&self, other: &AArch64SysRegId) -> bool
fn eq(&self, other: &AArch64SysRegId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AArch64SysRegId
impl PartialOrd for AArch64SysRegId
source§fn partial_cmp(&self, other: &AArch64SysRegId) -> Option<Ordering>
fn partial_cmp(&self, other: &AArch64SysRegId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)