Enum target_tuples::Architecture
source · [−]#[repr(u32)]
pub enum Architecture {
Show 36 variants
Unknown,
I86,
I8086,
I086,
I186,
I286,
I386,
I486,
I586,
I686,
X86_64,
Arm,
ArmBe,
Aarch64,
Aarch64Be,
Aarch64_32,
Mips,
MipsLE,
Mips64,
Mips64LE,
PowerPC32,
PowerPC64,
PowerPC64le,
RiscV32,
RiscV64,
Sparc,
SparcV9,
SparcEL,
Wasm32,
Wasm64,
Wc65c816,
M6502,
M65C02,
SPC700,
Clever,
Null,
// some variants omitted
}
Expand description
The Architecture field of a target tuple
Variants
Unknown
I86
I8086
I086
I186
I286
I386
I486
I586
I686
X86_64
Arm
ArmBe
Aarch64
Aarch64Be
Aarch64_32
Mips
MipsLE
Mips64
Mips64LE
PowerPC32
PowerPC64
PowerPC64le
RiscV32
RiscV64
Sparc
SparcV9
SparcEL
Wasm32
Wasm64
Wc65c816
M6502
M65C02
SPC700
Clever
Null
Used for ABI Purposes with lccc
Implementations
sourceimpl Architecture
impl Architecture
sourcepub fn parse(st: &str) -> Self
pub fn parse(st: &str) -> Self
Parses the Architecture in a “lossy” manner
This is equivalent to Self::from_str
, but returns Architecture::Unknown
, instead of an error,
on an unknown architecture.
This is useful (in conjunction with an actual target name)
sourcepub fn canonical_name(&self) -> &'static str
pub fn canonical_name(&self) -> &'static str
Returns the canonical name of the target
The canonical name, when passed into [
Self::parse`] will yield an equivalent value,
Formatting an Architecture yields this string
pub fn is_x86(&self) -> bool
Trait Implementations
sourceimpl Clone for Architecture
impl Clone for Architecture
sourcefn clone(&self) -> Architecture
fn clone(&self) -> Architecture
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Architecture
impl Debug for Architecture
sourceimpl Display for Architecture
impl Display for Architecture
sourceimpl FromStr for Architecture
impl FromStr for Architecture
sourceimpl Hash for Architecture
impl Hash for Architecture
sourceimpl PartialEq<Architecture> for Architecture
impl PartialEq<Architecture> for Architecture
impl Copy for Architecture
impl Eq for Architecture
impl StructuralEq for Architecture
impl StructuralPartialEq for Architecture
Auto Trait Implementations
impl RefUnwindSafe for Architecture
impl Send for Architecture
impl Sync for Architecture
impl Unpin for Architecture
impl UnwindSafe for Architecture
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more