Enum probe_rs_target::CoreType
source · pub enum CoreType {
Armv6m,
Armv7a,
Armv7m,
Armv7em,
Armv8a,
Armv8m,
Riscv,
Xtensa,
}
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
Xtensa
Xtensa - TODO: may need to split into NX, LX6 and LX7
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<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 PartialEq for CoreType
impl PartialEq for CoreType
impl Copy for CoreType
impl Eq 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<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