pub enum CoreType {
Armv6m,
Armv7a,
Armv7m,
Armv7em,
Armv8a,
Armv8m,
Riscv,
}
Expand description
Type of a supported core.
Variants
Armv6m
ARMv6-M: Cortex M0, M0+, M1
Armv7a
ARMv7-A: Cortex A7, A9, A15
Armv7m
ARMv7-M: Cortex M3
Armv7em
ARMv7e-M: Cortex M4, M7
Armv8a
ARMv7-A: Cortex A35, A55, A72
Armv8m
ARMv8-M: Cortex M23, M33
Riscv
RISC-V
Implementations
sourceimpl CoreType
impl CoreType
sourcepub fn is_cortex_m(&self) -> bool
pub fn is_cortex_m(&self) -> bool
Returns true if the core type is an ARM Cortex-M
sourceimpl CoreType
impl CoreType
sourcepub fn architecture(&self) -> Architecture
pub fn architecture(&self) -> Architecture
Returns the parent architecture family of this core type.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for CoreType
impl<'de> Deserialize<'de> for CoreType
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<CoreType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<CoreType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for CoreType
impl Serialize for CoreType
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for CoreType
impl Eq for CoreType
impl StructuralEq for CoreType
impl StructuralPartialEq for CoreType
Auto Trait Implementations
impl RefUnwindSafe for CoreType
impl Send for CoreType
impl Sync for CoreType
impl Unpin for CoreType
impl UnwindSafe for CoreType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.