#[non_exhaustive]
pub enum Arch {
Show 21 variants
AArch64,
Arm,
Avr,
Bpf,
Hexagon,
M68k,
Mips,
Mips64,
Msp430,
Nvptx64,
PowerPc,
PowerPc64,
Riscv32,
Riscv64,
S390X,
Sparc,
Sparc64,
Wasm32,
Wasm64,
X86,
X86_64,
}
Expand description
target_arch
: Target CPU architecture
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
AArch64
aarch64
: ARMv8 64-bit architecture
Arm
arm
: 32-bit ARM architecture
Avr
avr
Bpf
bpf
Hexagon
hexagon
M68k
m68k
Mips
mips
: 32-bit MIPS CPU architecture
Mips64
mips64
: 64-bit MIPS CPU architecture
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
Implementations
Trait Implementations
sourceimpl Ord for Arch
impl Ord for Arch
sourceimpl PartialOrd<Arch> for Arch
impl PartialOrd<Arch> for Arch
sourcefn partial_cmp(&self, other: &Arch) -> Option<Ordering>
fn partial_cmp(&self, other: &Arch) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for Arch
impl Eq for Arch
impl StructuralEq for Arch
impl StructuralPartialEq for Arch
Auto Trait Implementations
impl RefUnwindSafe for Arch
impl Send for Arch
impl Sync for Arch
impl Unpin for Arch
impl UnwindSafe for Arch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more