pub struct PlatformTriple(/* private fields */);Expand description
A plain, owned platform triple value.
Implementations§
Source§impl PlatformTriple
impl PlatformTriple
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, PlatformTripleError>
pub fn new(value: impl AsRef<str>) -> Result<Self, PlatformTripleError>
Creates a platform triple from non-empty text.
§Errors
Returns PlatformTripleError::Empty when the trimmed input is empty.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the triple and returns the owned string.
Trait Implementations§
Source§impl AsRef<str> for PlatformTriple
impl AsRef<str> for PlatformTriple
Source§impl Clone for PlatformTriple
impl Clone for PlatformTriple
Source§fn clone(&self) -> PlatformTriple
fn clone(&self) -> PlatformTriple
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 PlatformTriple
impl Debug for PlatformTriple
Source§impl Display for PlatformTriple
impl Display for PlatformTriple
Source§impl From<PlatformTriple> for Platform
impl From<PlatformTriple> for Platform
Source§fn from(triple: PlatformTriple) -> Self
fn from(triple: PlatformTriple) -> Self
Converts to this type from the input type.
Source§impl FromStr for PlatformTriple
impl FromStr for PlatformTriple
Source§impl Hash for PlatformTriple
impl Hash for PlatformTriple
Source§impl Ord for PlatformTriple
impl Ord for PlatformTriple
Source§fn cmp(&self, other: &PlatformTriple) -> Ordering
fn cmp(&self, other: &PlatformTriple) -> 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 PlatformTriple
impl PartialEq for PlatformTriple
Source§fn eq(&self, other: &PlatformTriple) -> bool
fn eq(&self, other: &PlatformTriple) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PlatformTriple
impl PartialOrd for PlatformTriple
impl Eq for PlatformTriple
impl StructuralPartialEq for PlatformTriple
Auto Trait Implementations§
impl Freeze for PlatformTriple
impl RefUnwindSafe for PlatformTriple
impl Send for PlatformTriple
impl Sync for PlatformTriple
impl Unpin for PlatformTriple
impl UnsafeUnpin for PlatformTriple
impl UnwindSafe for PlatformTriple
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