pub struct TargetTriple(/* private fields */);Expand description
The target triple a build is produced for (e.g. wasm32-unknown-unknown).
A newtype rather than a bare String so it cannot be transposed with the
profile or a path at a call site.
Implementations§
Trait Implementations§
Source§impl Clone for TargetTriple
impl Clone for TargetTriple
Source§fn clone(&self) -> TargetTriple
fn clone(&self) -> TargetTriple
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetTriple
impl Debug for TargetTriple
Source§impl Display for TargetTriple
impl Display for TargetTriple
impl Eq for TargetTriple
Source§impl Hash for TargetTriple
impl Hash for TargetTriple
Source§impl Ord for TargetTriple
impl Ord for TargetTriple
Source§fn cmp(&self, other: &TargetTriple) -> Ordering
fn cmp(&self, other: &TargetTriple) -> Ordering
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
Source§impl PartialEq for TargetTriple
impl PartialEq for TargetTriple
Source§impl PartialOrd for TargetTriple
impl PartialOrd for TargetTriple
impl StructuralPartialEq for TargetTriple
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