Struct guppy::platform::Triple [−][src]
pub struct Triple { /* fields omitted */ }
Expand description
A single, specific target, uniquely identified by a triple.
A Triple
may be constructed through new
or the FromStr
implementation.
Every Platform
has one of these, and an evaluation
TargetSpec
may be backed by one of these as well.
Examples
use target_spec::Triple;
// Parse a simple target.
let target = Triple::new("x86_64-unknown-linux-gnu").unwrap();
// This is not a valid triple.
let err = Triple::new("cannot-be-known").unwrap_err();
Implementations
Creates a new Triple
from a triple string.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Triple
impl UnwindSafe for Triple
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.