logo
#[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
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

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

String representing this Arch which matches #[cfg(target_arch)]

Trait Implementations

Returns a copy of the value. Read more

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

Create a new Arch from the given string

The associated error which can be returned from parsing.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. 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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. 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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.