pub enum Architecture {
X86,
X86_64,
Arm,
Aarch64,
RiscV32,
RiscV64,
Wasm32,
Wasm64,
Unknown,
Custom(String),
}Expand description
CPU or target architecture vocabulary.
Variants§
X86
32-bit x86 architecture.
X86_64
64-bit x86 architecture.
Arm
32-bit ARM architecture.
Aarch64
64-bit ARM architecture.
RiscV32
32-bit RISC-V architecture.
RiscV64
64-bit RISC-V architecture.
Wasm32
32-bit WebAssembly architecture.
Wasm64
64-bit WebAssembly architecture.
Unknown
Unknown architecture.
Custom(String)
A caller-defined architecture name.
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 (const: unstable) · 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 Ord for Architecture
impl Ord for Architecture
Source§fn cmp(&self, other: &Architecture) -> Ordering
fn cmp(&self, other: &Architecture) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Architecture
impl PartialEq for Architecture
Source§fn eq(&self, other: &Architecture) -> bool
fn eq(&self, other: &Architecture) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Architecture
impl PartialOrd 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