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

The "architecture" (and sometimes the subarchitecture).

The "vendor" (whatever that means).

The "operating system" (sometimes also the environment).

The "environment" on top of the operating system.

The "binary format" (rarely used).

Methods

impl Triple
[src]

[src]

Return the triple for the current host.

impl Triple
[src]

[src]

Return the endianness of this target's architecture.

[src]

Return the pointer width of this target's architecture.

Trait Implementations

impl Clone for Triple
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Triple
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Triple
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Triple
[src]

impl Hash for Triple
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

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

impl Default for Triple
[src]

[src]

Returns the "default value" for a type. Read more

impl Display for Triple
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for Triple
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for Triple

impl Sync for Triple