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