pub struct TargetTriple(/* private fields */);Expand description
A compilation target triple (free-form, validated for shape only).
Implementations§
Source§impl TargetTriple
impl TargetTriple
Sourcepub fn parse<S: Into<String>>(value: S) -> Result<Self, IdentityError>
pub fn parse<S: Into<String>>(value: S) -> Result<Self, IdentityError>
Construct, validating the input.
§Errors
Returns the IdentityError variant for this newtype’s
validation rule when value violates it.
Sourcepub fn into_inner(self) -> String
pub fn into_inner(self) -> String
Consume and return the inner String.
Trait Implementations§
Source§impl AsRef<OsStr> for TargetTriple
impl AsRef<OsStr> for TargetTriple
Source§impl AsRef<Path> for TargetTriple
impl AsRef<Path> for TargetTriple
Source§impl AsRef<str> for TargetTriple
impl AsRef<str> for TargetTriple
Source§impl Clone for TargetTriple
impl Clone for TargetTriple
Source§impl ComposeSchema for TargetTriple
impl ComposeSchema for TargetTriple
Source§impl Debug for TargetTriple
impl Debug for TargetTriple
Source§impl<'de> Deserialize<'de> for TargetTriple
impl<'de> Deserialize<'de> for TargetTriple
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
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 PartialEq<&str> for TargetTriple
impl PartialEq<&str> for TargetTriple
Source§impl PartialEq<TargetTriple> for &str
impl PartialEq<TargetTriple> for &str
Source§impl PartialEq<TargetTriple> for str
impl PartialEq<TargetTriple> for str
Source§impl PartialEq<str> for TargetTriple
impl PartialEq<str> for TargetTriple
Source§impl PartialOrd for TargetTriple
impl PartialOrd for TargetTriple
Source§impl Serialize for TargetTriple
impl Serialize 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
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.