Enum Arch Copy item path Source #[non_exhaustive]
pub enum Arch<'a> {
Show 29 variants AArch64,
Amdgpu,
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,
Other(Cow <'a, str >),
}
Expand description 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.
ARMv8 64-bit architecture
aarch64
AMD GPU architecture
amdgpu
32-bit ARM architecture
arm
ARM64 architecture with Windows EC (Emulation Compatible)
arm64ec
AVR 8-bit microcontroller architecture
avr
Berkeley Packet Filter virtual machine architecture
bpf
C-SKY CPU architecture
csky
Qualcomm Hexagon DSP architecture
hexagon
LoongArch 64-bit CPU architecture
loongarch64
Motorola 68k CPU architecture
m68k
32-bit MIPS CPU architecture
mips
MIPS 32-bit Revision 6 architecture
mips32r6
64-bit MIPS CPU architecture
mips64
MIPS 64-bit Revision 6 architecture
mips64r6
16-bit MSP430 microcontroller architecture
msp430
64-bit NVIDIA PTX virtual architecture
nvptx64
32-bit POWERPC architecture
powerpc
64-bit POWERPC architecture
powerpc64
32-bit RISC-V architecture
riscv32
64-bit RISC-V architecture
riscv64
64-bit IBM z/Architecture mainframe CPU
s390x
32-bit SPARC CPU architecture
sparc
64-bit SPARC CPU architecture
sparc64
32-bit WebAssembly architecture
wasm32
64-bit WebAssembly architecture
wasm64
Generic 32-bit x86 CPU architecture
x86
64-bit x86-64 (AMD64) CPU architecture
x86_64
Xtensa CPU architecture (commonly used in embedded systems)
xtensa
String representing this target architecture which matches #[cfg(target_arch)]
.
Tries to parse the given string as an Arch
falling back to Arch::Other
for unknown values.
Gets the current target Arch
.
Performs copy-assignment from
source
.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
This method returns an ordering between
self
and
other
values if one exists.
Read more Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self
and
other
) and is used by
the
>=
operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dest
.
Read more Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From <T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String
.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.