Enum symbolic_common::types::Arch
source · #[repr(u32)]
pub enum Arch {
Show 19 variants
Unknown,
X86,
X86_64,
X86_64h,
Arm,
ArmV5,
ArmV6,
ArmV6m,
ArmV7,
ArmV7f,
ArmV7s,
ArmV7k,
ArmV7m,
ArmV7em,
Arm64,
Arm64V8,
Arm64e,
Ppc,
Ppc64,
// some variants omitted
}
Expand description
An enum of supported architectures.
Variants§
Unknown
X86
X86_64
X86_64h
Arm
ArmV5
ArmV6
ArmV6m
ArmV7
ArmV7f
ArmV7s
ArmV7k
ArmV7m
ArmV7em
Arm64
Arm64V8
Arm64e
Ppc
Ppc64
Implementations§
source§impl Arch
impl Arch
sourcepub fn from_u32(val: u32) -> Result<Arch, UnknownArchError>
pub fn from_u32(val: u32) -> Result<Arch, UnknownArchError>
Creates an arch from the u32 it represents.
sourcepub fn to_breakpad(self) -> &'static str
pub fn to_breakpad(self) -> &'static str
Returns the breakpad name for this Arch.
sourcepub fn cpu_family(self) -> CpuFamily
pub fn cpu_family(self) -> CpuFamily
Returns the CPU family.
sourcepub fn pointer_size(self) -> Option<usize>
pub fn pointer_size(self) -> Option<usize>
Returns the native pointer size.
sourcepub fn ip_register_name(self) -> Option<&'static str>
pub fn ip_register_name(self) -> Option<&'static str>
The name of the IP register if known.
sourcepub fn instruction_alignment(self) -> Option<u64>
pub fn instruction_alignment(self) -> Option<u64>
Returns instruction alignment if fixed.
Trait Implementations§
source§impl Ord for Arch
impl Ord for Arch
source§impl PartialOrd<Arch> for Arch
impl PartialOrd<Arch> for Arch
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more