pub struct Midr(/* private fields */);Available on AArch64 only.
Expand description
Architectural MIDR_EL1 identity, independent of platform CPU numbering. Cluster grouping and Linux PMU source names belong to the caller.
Implementations§
Source§impl Midr
impl Midr
Sourcepub const fn from_raw(value: u64) -> Self
pub const fn from_raw(value: u64) -> Self
Wraps a previously captured identity without accessing hardware.
Sourcepub const fn implementer(self) -> u8
pub const fn implementer(self) -> u8
Returns the implementer code in bits 31:24.
Sourcepub const fn part_number(self) -> u16
pub const fn part_number(self) -> u16
Returns the implementation’s part number in bits 15:4.
Trait Implementations§
impl Copy for Midr
impl Eq for Midr
impl StructuralPartialEq for Midr
Auto Trait Implementations§
impl Freeze for Midr
impl RefUnwindSafe for Midr
impl Send for Midr
impl Sync for Midr
impl Unpin for Midr
impl UnsafeUnpin for Midr
impl UnwindSafe for Midr
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