pub struct MlLabelName(/* private fields */);Implementations§
Source§impl MlLabelName
impl MlLabelName
pub fn new(value: impl AsRef<str>) -> Result<MlLabelName, MlLabelError>
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl AsRef<str> for MlLabelName
impl AsRef<str> for MlLabelName
Source§impl Clone for MlLabelName
impl Clone for MlLabelName
Source§fn clone(&self) -> MlLabelName
fn clone(&self) -> MlLabelName
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 MlLabelName
impl Debug for MlLabelName
Source§impl Display for MlLabelName
impl Display for MlLabelName
Source§impl FromStr for MlLabelName
impl FromStr for MlLabelName
Source§type Err = MlLabelError
type Err = MlLabelError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<MlLabelName, <MlLabelName as FromStr>::Err>
fn from_str(value: &str) -> Result<MlLabelName, <MlLabelName as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for MlLabelName
impl Hash for MlLabelName
Source§impl Ord for MlLabelName
impl Ord for MlLabelName
Source§fn cmp(&self, other: &MlLabelName) -> Ordering
fn cmp(&self, other: &MlLabelName) -> 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 MlLabelName
impl PartialEq for MlLabelName
Source§fn eq(&self, other: &MlLabelName) -> bool
fn eq(&self, other: &MlLabelName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MlLabelName
impl PartialOrd for MlLabelName
Source§impl TryFrom<&str> for MlLabelName
impl TryFrom<&str> for MlLabelName
Source§type Error = MlLabelError
type Error = MlLabelError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<MlLabelName, <MlLabelName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<MlLabelName, <MlLabelName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for MlLabelName
impl StructuralPartialEq for MlLabelName
Auto Trait Implementations§
impl Freeze for MlLabelName
impl RefUnwindSafe for MlLabelName
impl Send for MlLabelName
impl Sync for MlLabelName
impl Unpin for MlLabelName
impl UnsafeUnpin for MlLabelName
impl UnwindSafe for MlLabelName
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