Enum probe_rs::InstructionSet
source · pub enum InstructionSet {
Thumb2,
A32,
A64,
RV32,
RV32C,
}
Expand description
Instruction set used by a core
Variants§
Thumb2
ARM Thumb 2 instruction set
A32
ARM A32 (often just called ARM) instruction set
A64
ARM A64 (aarch64) instruction set
RV32
RISC-V 32-bit uncompressed instruction sets (RV32) - covers all ISA variants that use 32-bit instructions.
RV32C
RISC-V 32-bit compressed instruction sets (RV32C) - covers all ISA variants that allow compressed 16-bit instructions.
Implementations§
source§impl InstructionSet
impl InstructionSet
sourcepub fn get_minimum_instruction_size(&self) -> u8
pub fn get_minimum_instruction_size(&self) -> u8
Get the minimum instruction size in bytes.
sourcepub fn get_maximum_instruction_size(&self) -> u8
pub fn get_maximum_instruction_size(&self) -> u8
Get the maximum instruction size in bytes. All supported architectures have a maximum instruction size of 4 bytes.
Trait Implementations§
source§impl Clone for InstructionSet
impl Clone for InstructionSet
source§fn clone(&self) -> InstructionSet
fn clone(&self) -> InstructionSet
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InstructionSet
impl Debug for InstructionSet
source§impl PartialEq<InstructionSet> for InstructionSet
impl PartialEq<InstructionSet> for InstructionSet
source§fn eq(&self, other: &InstructionSet) -> bool
fn eq(&self, other: &InstructionSet) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InstructionSet
impl Eq for InstructionSet
impl StructuralEq for InstructionSet
impl StructuralPartialEq for InstructionSet
Auto Trait Implementations§
impl RefUnwindSafe for InstructionSet
impl Send for InstructionSet
impl Sync for InstructionSet
impl Unpin for InstructionSet
impl UnwindSafe for InstructionSet
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.