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
impl Architecture
[src]
impl Architecture
pub fn endianness(&self) -> Result<Endianness, ()>
[src]
pub fn endianness(&self) -> Result<Endianness, ()>
Return the endianness of this architecture.
pub fn pointer_width(&self) -> Result<PointerWidth, ()>
[src]
pub fn pointer_width(&self) -> Result<PointerWidth, ()>
Return the pointer bit width of this target's architecture.
Trait Implementations
impl Copy for Architecture
[src]
impl Copy for Architecture
impl Clone for Architecture
[src]
impl Clone for Architecture
fn clone(&self) -> Architecture
[src]
fn clone(&self) -> Architecture
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Architecture
[src]
impl Debug for Architecture
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Architecture
[src]
impl PartialEq for Architecture
fn eq(&self, other: &Architecture) -> bool
[src]
fn eq(&self, other: &Architecture) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Architecture
[src]
impl Eq for Architecture
impl Hash for Architecture
[src]
impl Hash for Architecture
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
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]
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 Display for Architecture
[src]
impl Display for Architecture
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for Architecture
[src]
impl FromStr for Architecture
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, ()>
[src]
fn from_str(s: &str) -> Result<Self, ()>
Parses a string s
to return a value of this type. Read more
impl Default for Architecture
[src]
impl Default for Architecture
Auto Trait Implementations
impl Send for Architecture
impl Send for Architecture
impl Sync for Architecture
impl Sync for Architecture