pub struct CanonicalUsername(/* private fields */);Implementations§
Source§impl CanonicalUsername
impl CanonicalUsername
pub fn parse(value: &str) -> Result<CanonicalUsername, UsernameError>
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl Clone for CanonicalUsername
impl Clone for CanonicalUsername
Source§fn clone(&self) -> CanonicalUsername
fn clone(&self) -> CanonicalUsername
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 CanonicalUsername
impl Debug for CanonicalUsername
impl Eq for CanonicalUsername
Source§impl Hash for CanonicalUsername
impl Hash for CanonicalUsername
Source§impl PartialEq for CanonicalUsername
impl PartialEq for CanonicalUsername
impl StructuralPartialEq for CanonicalUsername
Auto Trait Implementations§
impl Freeze for CanonicalUsername
impl RefUnwindSafe for CanonicalUsername
impl Send for CanonicalUsername
impl Sync for CanonicalUsername
impl Unpin for CanonicalUsername
impl UnsafeUnpin for CanonicalUsername
impl UnwindSafe for CanonicalUsername
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