pub struct Triple {
pub arch: Arch,
pub os: Os,
pub env: Env,
}Expand description
A target triple.
We accept the LLVM-style arch-vendor-os-env form because that is what build systems
pass, and we normalise it to the three fields we actually branch on. The vendor field is
parsed and discarded: no decision in the compiler depends on it, and keeping it would
invite one.
Fields§
§arch: ArchThe architecture.
os: OsThe operating system.
env: EnvThe runtime and ABI variant.
Implementations§
Trait Implementations§
impl Copy for Triple
impl Eq for Triple
Source§impl Ord for Triple
impl Ord for Triple
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Triple
impl PartialOrd for Triple
impl StructuralPartialEq for Triple
Auto Trait Implementations§
impl Freeze for Triple
impl RefUnwindSafe for Triple
impl Send for Triple
impl Sync for Triple
impl Unpin for Triple
impl UnsafeUnpin for Triple
impl UnwindSafe for Triple
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more