[][src]Enum platforms::target::Arch

pub enum Arch {
    AARCH64,
    ARM,
    ASMJS,
    MIPS,
    MIPS64,
    MSP430,
    POWERPC,
    POWERPC64,
    RISCV,
    S390X,
    SPARC,
    SPARC64,
    THUMBV6,
    THUMBV7,
    WASM32,
    X86,
    X86_64,
    Unknown,
}

target_arch: Target CPU architecture

Variants

AARCH64

aarch64: ARMv8 64-bit architecture

ARM

arm: 32-bit ARM architecture

ASMJS

asm: asm.js output

MIPS

mips: 32-bit MIPS CPU architecture

MIPS64

mips64: 32-bit MIPS CPU architecture

MSP430

msp430: 16-bit MSP430 microcontrollers

POWERPC

powerpc: 32-bit POWERPC platform

POWERPC64

powerpc64: 64-bit POWERPC platform

RISCV

riscv: RISC-V CPU architecture

S390X

s390x: 64-bit IBM z/Architecture

SPARC

sparc: 32-bit SPARC CPU architecture

SPARC64

sparc64: 64-bit SPARC CPU architecture

THUMBV6

thumbv6: 16-bit ARM CPU architecture subset

THUMBV7

thumbv7: 16-bit ARM CPU architecture subset

WASM32

wasm32: Web Assembly (32-bit)

X86

x86: Generic x86 CPU architecture

X86_64

x86_64: "AMD64" CPU architecture

Unknown

Unknown CPU architecture

Methods

impl Arch
[src]

pub fn as_str(self) -> &'static str
[src]

String representing this target architecture which matches cfg(target_arch)

Trait Implementations

impl Copy for Arch
[src]

impl PartialEq<Arch> for Arch
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Eq for Arch
[src]

impl Ord for Arch
[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd<Arch> for Arch
[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]

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

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0
[src]

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

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]

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

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]

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

impl Clone for Arch
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Arch
[src]

impl Hash for Arch
[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

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

impl FromStr for Arch
[src]

type Err = Error

The associated error which can be returned from parsing.

fn from_str(arch_name: &str) -> Result<Self, Self::Err>
[src]

Create a new Arch from the given string

Auto Trait Implementations

impl Send for Arch

impl Sync for Arch

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

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

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

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

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T