Struct target_lexicon::Triple
[−]
[src]
pub struct Triple { pub architecture: Architecture, pub vendor: Vendor, pub operating_system: OperatingSystem, pub environment: Environment, pub binary_format: BinaryFormat, }
A target "triple", because historically such things had three fields, though they've grown more features over time.
Fields
architecture: Architecture
The "architecture" (and sometimes the subarchitecture).
vendor: Vendor
The "vendor" (whatever that means).
operating_system: OperatingSystem
The "operating system" (sometimes also the environment).
environment: Environment
The "environment" on top of the operating system.
binary_format: BinaryFormat
The "binary format" (rarely used).
Methods
impl Triple
[src]
impl Triple
[src]
pub fn endianness(&self) -> Result<Endianness, ()>
[src]
Return the endianness of this target's architecture.
pub fn pointer_width(&self) -> Result<PointerWidth, ()>
[src]
Return the pointer width of this target's architecture.
Trait Implementations
impl Clone for Triple
[src]
fn clone(&self) -> Triple
[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 Triple
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Triple
[src]
fn eq(&self, __arg_0: &Triple) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Triple) -> bool
[src]
This method tests for !=
.
impl Eq for Triple
[src]
impl Hash for Triple
[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 Default for Triple
[src]
impl Display for Triple
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more