pub struct TargetTriple {
pub triple: String,
pub arch: Architecture,
pub vendor: Vendor,
pub os: OperatingSystem,
pub abi: Abi,
pub family: TargetFamily,
}Expand description
A fully qualified target triple with parsed components.
Fields§
§triple: String§arch: Architecture§vendor: Vendor§os: OperatingSystem§abi: Abi§family: TargetFamilyImplementations§
Source§impl TargetTriple
impl TargetTriple
pub fn parse(triple: &str) -> Result<Self, TargetParseError>
pub fn as_str(&self) -> &str
pub fn is_windows(&self) -> bool
pub fn is_linux(&self) -> bool
pub fn is_macos(&self) -> bool
pub fn is_wasm(&self) -> bool
pub fn is_bare_metal(&self) -> bool
pub fn pointer_width(&self) -> u8
pub fn endianness(&self) -> Endianness
Source§impl TargetTriple
Target family trait for TargetTriple.
impl TargetTriple
Target family trait for TargetTriple.
pub fn family(&self) -> TargetFamily
Trait Implementations§
Source§impl Clone for TargetTriple
impl Clone for TargetTriple
Source§impl Debug for TargetTriple
impl Debug for TargetTriple
Source§impl Display for TargetTriple
impl Display for TargetTriple
impl Eq for TargetTriple
Source§impl FromStr for TargetTriple
impl FromStr for TargetTriple
Source§impl Hash for TargetTriple
impl Hash for TargetTriple
Source§impl Ord for TargetTriple
impl Ord for TargetTriple
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 PartialEq for TargetTriple
impl PartialEq for TargetTriple
Source§impl PartialOrd for TargetTriple
impl PartialOrd for TargetTriple
impl StructuralPartialEq for TargetTriple
Source§impl TargetFamilyExt for TargetTriple
impl TargetFamilyExt for TargetTriple
fn family(&self) -> TargetFamily
Auto Trait Implementations§
impl Freeze for TargetTriple
impl RefUnwindSafe for TargetTriple
impl Send for TargetTriple
impl Sync for TargetTriple
impl Unpin for TargetTriple
impl UnsafeUnpin for TargetTriple
impl UnwindSafe for TargetTriple
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more