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