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