pub struct Midr(pub u32);Expand description
A CPU main-ID-register value (MIDR_EL1-style), as read from
/proc/cpuinfo’s CPU implementer / CPU part fields.
Tuple Fields§
§0: u32Implementations§
Source§impl Midr
impl Midr
Sourcepub fn cortex_name(&self) -> Option<&'static str>
pub fn cortex_name(&self) -> Option<&'static str>
Map the implementer (0x41 = Arm) + part bits onto a Cortex name.
Only the part field is consulted; the table covers the cores the agent’s
supported boards ship. An unknown part returns None so the caller can
surface the raw MIDR rather than guess.
Trait Implementations§
impl Copy for Midr
Source§impl<'de> Deserialize<'de> for Midr
impl<'de> Deserialize<'de> for Midr
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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.