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