#[non_exhaustive]pub enum Architecture {
Show 51 variants
X86,
X86_64,
Aarch64,
Arm,
Armv4t,
Armv5te,
Armv6,
Armv6k,
Armv7,
Armv7a,
Armv7k,
Armv7r,
Armv7s,
Armeb,
Armebv7r,
Thumbv4t,
Thumbv5te,
Thumbv6m,
Thumbv7a,
Thumbv7em,
Thumbv7m,
Thumbv7neon,
Thumbv8mBase,
Thumbv8mMain,
Riscv32,
Riscv64,
Mips,
Mipsel,
Mips32r6,
Mips64,
Mips64el,
Mips64r6,
Powerpc,
Powerpc64,
Powerpc64le,
S390x,
Sparc,
Sparc64,
LoongArch64,
Hexagon,
M68k,
Msp430,
Avr,
Nvptx64,
Bpfeb,
Bpfel,
Xtensa,
Csky,
Wasm32,
Wasm64,
Unknown,
}Expand description
CPU architecture.
Variants use Rust-canonical naming from target triples.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
X86
X86_64
Aarch64
Arm
Armv4t
Armv5te
Armv6
Armv6k
Armv7
Armv7a
Armv7k
Armv7r
Armv7s
Armeb
Armebv7r
Thumbv4t
Thumbv5te
Thumbv6m
Thumbv7a
Thumbv7em
Thumbv7m
Thumbv7neon
Thumbv8mBase
Thumbv8mMain
Riscv32
Riscv64
Mips
Mipsel
Mips32r6
Mips64
Mips64el
Mips64r6
Powerpc
Powerpc64
Powerpc64le
S390x
Sparc
Sparc64
LoongArch64
Hexagon
M68k
Msp430
Avr
Nvptx64
Bpfeb
Bpfel
Xtensa
Csky
Wasm32
Wasm64
Unknown
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