Enum symbolic_common::types::Arch
[−]
[src]
#[repr(u32)]pub enum Arch { Unknown, X86, X86_64, X86_64h, Arm, ArmV5, ArmV6, ArmV6m, ArmV7, ArmV7f, ArmV7s, ArmV7k, ArmV7m, ArmV7em, Arm64, Arm64V8, Ppc, Ppc64, // some variants omitted }
An enum of supported architectures.
Variants
UnknownX86X86_64X86_64hArmArmV5ArmV6ArmV6mArmV7ArmV7fArmV7sArmV7kArmV7mArmV7emArm64Arm64V8PpcPpc64
Methods
impl Arch[src]
pub fn from_u32(val: u32) -> Result<Arch, UnknownArchError>[src]
Creates an arch from the u32 it represents.
pub fn to_breakpad(&self) -> &'static str[src]
Returns the breakpad name for this Arch.
pub fn cpu_family(&self) -> CpuFamily[src]
Returns the CPU family.
pub fn pointer_size(&self) -> Option<usize>[src]
Returns the native pointer size.
pub fn name(&self) -> &'static str[src]
Returns the name of the arch.
pub fn ip_register_name(&self) -> Option<&'static str>[src]
The name of the IP register if known.
pub fn instruction_alignment(&self) -> Option<u64>[src]
Returns instruction alignment if fixed.
Trait Implementations
impl Debug for Arch[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for Arch[src]
fn eq(&self, __arg_0: &Arch) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Eq for Arch[src]
impl PartialOrd for Arch[src]
fn partial_cmp(&self, __arg_0: &Arch) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Arch[src]
fn cmp(&self, __arg_0: &Arch) -> Ordering[src]
This method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Clone for Arch[src]
fn clone(&self) -> Arch[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for Arch[src]
impl Default for Arch[src]
impl Display for Arch[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl FromStr for Arch[src]
type Err = UnknownArchError
The associated error which can be returned from parsing.
fn from_str(string: &str) -> Result<Arch, UnknownArchError>[src]
Parses a string s to return a value of this type. Read more