Enum rustc_target::spec::TargetTriple[][src]

pub enum TargetTriple {
    TargetTriple(String),
    TargetPath(PathBuf),
}

Either a target triple string or a path to a JSON file.

Variants

Methods

impl TargetTriple
[src]

Creates a target triple from the passed target triple string.

Creates a target triple from the passed target path.

Returns a string triple for this target.

If this target is a path, the file name (without extension) is returned.

Returns an extended string triple for this target.

If this target is a path, a hash of the path is appended to the triple returned by triple().

Trait Implementations

impl PartialEq for TargetTriple
[src]

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

This method tests for !=.

impl Clone for TargetTriple
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TargetTriple
[src]

Formats the value using the given formatter. Read more

impl Hash for TargetTriple
[src]

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

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

impl Encodable for TargetTriple
[src]

impl Decodable for TargetTriple
[src]

impl Display for TargetTriple
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations