Enum target_lexicon::Architecture
[−]
[src]
pub enum Architecture { Unknown, Aarch64, Arm, Armv4t, Armv5te, Armv7, Armv7s, Asmjs, I386, I586, I686, Mips, Mips64, Mips64el, Mipsel, Msp430, Powerpc, Powerpc64, Powerpc64le, Riscv32, Riscv64, S390x, Sparc, Sparc64, Sparcv9, Thumbv6m, Thumbv7em, Thumbv7m, Wasm32, X86_64, }
The "architecture" field, which in some cases also specifies a specific subarchitecture.
Variants
Unknown
Aarch64
Arm
Armv4t
Armv5te
Armv7
Armv7s
Asmjs
I386
I586
I686
Mips
Mips64
Mips64el
Mipsel
Msp430
Powerpc
Powerpc64
Powerpc64le
Riscv32
Riscv64
S390x
Sparc
Sparc64
Sparcv9
Thumbv6m
Thumbv7em
Thumbv7m
Wasm32
X86_64
Methods
impl Architecture
[src]
impl Architecture
[src]
pub fn endianness(&self) -> Result<Endianness, ()>
[src]
Return the endianness of this architecture.
pub fn pointer_width(&self) -> Result<PointerWidth, ()>
[src]
Return the pointer bit width of this target's architecture.
Trait Implementations
impl Copy for Architecture
[src]
impl Clone for Architecture
[src]
fn clone(&self) -> Architecture
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Architecture
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Architecture
[src]
fn eq(&self, __arg_0: &Architecture) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Architecture
[src]
impl Hash for Architecture
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for Architecture
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl FromStr for Architecture
[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, ()>
[src]
Parses a string s
to return a value of this type. Read more