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