[][src]Struct target_lexicon::Triple

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]

pub fn host() -> Self[src]

Return the triple for the current host.

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.

pub fn default_calling_convention(&self) -> Result<CallingConvention, ()>[src]

Return the default calling convention for the given target triple.

Trait Implementations

impl Display for Triple[src]

impl Debug for Triple[src]

impl PartialEq<Triple> for Triple[src]

impl Eq for Triple[src]

impl Hash for Triple[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 Triple[src]

type Err = ParseError

The associated error which can be returned from parsing.

impl Clone for Triple[src]

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

Performs copy-assignment from source. Read more

impl Default for Triple[src]

Auto Trait Implementations

impl Send for Triple

impl Sync for Triple

Blanket Implementations

impl<T> From for T[src]

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

type Error = Infallible

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]