#[non_exhaustive]pub enum Arch {
Show 27 variants
AArch64,
Arm,
Arm64ec,
Avr,
Bpf,
Csky,
Hexagon,
Loongarch64,
M68k,
Mips,
Mips32r6,
Mips64,
Mips64r6,
Msp430,
Nvptx64,
PowerPc,
PowerPc64,
Riscv32,
Riscv64,
S390X,
Sparc,
Sparc64,
Wasm32,
Wasm64,
X86,
X86_64,
Xtensa,
}
Expand description
target_arch
: Target CPU architecture
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.
AArch64
aarch64
: ARMv8 64-bit architecture
Arm
arm
: 32-bit ARM architecture
Arm64ec
arm64ec
Avr
avr
Bpf
bpf
Csky
csky
Hexagon
hexagon
Loongarch64
loongarch64
M68k
m68k
Mips
mips
: 32-bit MIPS CPU architecture
Mips32r6
mips32r6
Mips64
mips64
: 64-bit MIPS CPU architecture
Mips64r6
mips64r6
Msp430
msp430
: 16-bit MSP430 microcontrollers
Nvptx64
nvptx64
: 64-bit NVIDIA PTX
PowerPc
powerpc
: 32-bit POWERPC platform
PowerPc64
powerpc64
: 64-bit POWERPC platform
Riscv32
riscv32
Riscv64
riscv64
S390X
s390x
: 64-bit IBM z/Architecture
Sparc
sparc
: 32-bit SPARC CPU architecture
Sparc64
sparc64
: 64-bit SPARC CPU architecture
Wasm32
wasm32
: Web Assembly (32-bit)
Wasm64
wasm64
X86
x86
: Generic x86 CPU architecture
X86_64
x86_64
: ‘AMD64’ CPU architecture
Xtensa
xtensa
Implementations§
Trait Implementations§
source§impl Ord for Arch
impl Ord for Arch
source§impl PartialEq for Arch
impl PartialEq for Arch
source§impl PartialOrd for Arch
impl PartialOrd 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 moreimpl Copy for Arch
impl Eq for Arch
impl StructuralPartialEq for Arch
Auto Trait Implementations§
impl Freeze for Arch
impl RefUnwindSafe for Arch
impl Send for Arch
impl Sync for Arch
impl Unpin for Arch
impl UnwindSafe for Arch
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)