pub struct Nickname(/* private fields */);
Expand description
A nickname, not capitalized.
Implementations§
Source§impl Nickname
impl Nickname
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newNicknamefrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<NicknameRef>
pub fn into_boxed_ref(self) -> Box<NicknameRef>
Converts this Nickname
into a Box<NicknameRef>
This will drop any excess capacity.
Methods from Deref<Target = NicknameRef>§
Sourcepub fn as_cow(&self) -> Cow<'_, NicknameRef>
pub fn as_cow(&self) -> Cow<'_, NicknameRef>
Get a
Cow<'_, NicknameRef>
Trait Implementations§
Source§impl AsRef<NicknameRef> for Nickname
impl AsRef<NicknameRef> for Nickname
Source§fn as_ref(&self) -> &NicknameRef
fn as_ref(&self) -> &NicknameRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<NicknameRef> for Nickname
impl Borrow<NicknameRef> for Nickname
Source§fn borrow(&self) -> &NicknameRef
fn borrow(&self) -> &NicknameRef
Immutably borrows from an owned value. Read more
Source§impl<'de> Deserialize<'de> for Nickname
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Nickname
Available on crate feature
serde
only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<&'a Nickname> for &'a NicknameRef
impl<'a> From<&'a Nickname> for &'a NicknameRef
Source§impl From<&NicknameRef> for Nickname
impl From<&NicknameRef> for Nickname
Source§fn from(s: &NicknameRef) -> Self
fn from(s: &NicknameRef) -> Self
Converts to this type from the input type.
Source§impl From<Box<NicknameRef>> for Nickname
impl From<Box<NicknameRef>> for Nickname
Source§fn from(r: Box<NicknameRef>) -> Self
fn from(r: Box<NicknameRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, NicknameRef>> for Nickname
impl<'a> From<Cow<'a, NicknameRef>> for Nickname
Source§fn from(r: Cow<'a, NicknameRef>) -> Self
fn from(r: Cow<'a, NicknameRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoCow<'a, NicknameRef> for &'a Nickname
impl<'a> IntoCow<'a, NicknameRef> for &'a Nickname
Source§fn into_cow(self) -> Cow<'a, NicknameRef>
fn into_cow(self) -> Cow<'a, NicknameRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, NicknameRef> for Nickname
impl<'a> IntoCow<'a, NicknameRef> for Nickname
Source§fn into_cow(self) -> Cow<'a, NicknameRef>
fn into_cow(self) -> Cow<'a, NicknameRef>
Make the cow with proper ownership, muu
Source§impl Ord for Nickname
impl Ord for Nickname
Source§impl PartialEq<&NicknameRef> for Nickname
impl PartialEq<&NicknameRef> for Nickname
Source§impl PartialEq<Nickname> for &NicknameRef
impl PartialEq<Nickname> for &NicknameRef
Source§impl PartialEq<Nickname> for NicknameRef
impl PartialEq<Nickname> for NicknameRef
Source§impl PartialEq<NicknameRef> for Nickname
impl PartialEq<NicknameRef> for Nickname
Source§impl PartialOrd for Nickname
impl PartialOrd for Nickname
impl Eq for Nickname
impl StructuralPartialEq for Nickname
Auto Trait Implementations§
impl Freeze for Nickname
impl RefUnwindSafe for Nickname
impl Send for Nickname
impl Sync for Nickname
impl Unpin for Nickname
impl UnwindSafe for Nickname
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)