pub enum Architecture {
X86,
X86_64,
Arm,
Arm64,
Arm64_32,
}Expand description
CPU architecture extracted from a target triple.
Parsed from the first component of a Rust or Clang target triple string
("aarch64", "x86_64", "armv7", etc.).
use apple_platforms::triple::Architecture;
assert_eq!("aarch64".parse::<Architecture>().unwrap(), Architecture::Arm64);
assert_eq!("armv7k".parse::<Architecture>().unwrap(), Architecture::Arm);
assert!("riscv64".parse::<Architecture>().is_err());Variants§
X86
32-bit x86 (x86, i386, i686).
X86_64
64-bit x86 (x86_64).
Arm
32-bit ARM (arm, armv7, armv7s, armv7k).
Arm64
64-bit ARM / Apple Silicon (aarch64, arm64).
Arm64_32
watchOS ILP32 64-bit-pointer ARM (arm64_32).
Trait Implementations§
Source§impl Clone for Architecture
impl Clone for Architecture
Source§fn clone(&self) -> Architecture
fn clone(&self) -> Architecture
Returns a duplicate 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 Architecture
impl Debug for Architecture
Source§impl Display for Architecture
impl Display for Architecture
Source§impl FromStr for Architecture
impl FromStr for Architecture
Source§impl Hash for Architecture
impl Hash for Architecture
Source§impl PartialEq for Architecture
impl PartialEq for Architecture
impl Copy for Architecture
impl Eq for Architecture
impl StructuralPartialEq for Architecture
Auto Trait Implementations§
impl Freeze for Architecture
impl RefUnwindSafe for Architecture
impl Send for Architecture
impl Sync for Architecture
impl Unpin for Architecture
impl UnsafeUnpin for Architecture
impl UnwindSafe for Architecture
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