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§
source§impl 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
source§impl CoreType
impl CoreType
sourcepub fn architecture(&self) -> Architecture
pub fn architecture(&self) -> Architecture
Returns the parent architecture family of this core type.
Trait Implementations§
source§impl<'de> Deserialize<'de> for CoreType
impl<'de> Deserialize<'de> for CoreType
source§fn 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
source§impl PartialEq<CoreType> for CoreType
impl PartialEq<CoreType> for CoreType
source§impl Serialize for CoreType
impl Serialize for CoreType
source§fn 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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.