pub struct Triple { /* private fields */ }
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§
Trait Implementations§
source§impl Ord for Triple
impl Ord for Triple
source§impl PartialOrd<Triple> for Triple
impl PartialOrd<Triple> for Triple
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Triple
Auto Trait Implementations§
impl RefUnwindSafe for Triple
impl Send for Triple
impl Sync for Triple
impl Unpin for Triple
impl UnwindSafe for Triple
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.