pub struct NicknameRef(/* private fields */);
Expand description
A nickname, not capitalized.
Implementations§
Source§impl NicknameRef
impl NicknameRef
Sourcepub const fn from_str(raw: &str) -> &Self
pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed NicknameRef
Sourcepub const fn from_static(raw: &'static str) -> &'static Self
pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed NicknameRef
Sourcepub fn into_owned(self: Box<NicknameRef>) -> Nickname
pub fn into_owned(self: Box<NicknameRef>) -> Nickname
Converts a Box<NicknameRef>
into a Nickname
without copying or allocating
Source§impl NicknameRef
impl 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 AsRef<str> for NicknameRef
impl AsRef<str> for NicknameRef
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 Borrow<str> for NicknameRef
impl Borrow<str> for NicknameRef
Source§impl Debug for NicknameRef
impl Debug for NicknameRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a NicknameRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a NicknameRef
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<'de> Deserialize<'de> for Box<NicknameRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<NicknameRef>
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 Display for NicknameRef
impl Display for NicknameRef
Source§impl<'a> From<&'a &'a NicknameRef> for Collection<'a, Nickname>
impl<'a> From<&'a &'a NicknameRef> for Collection<'a, Nickname>
Source§fn from(v: &'a &'a NicknameRef) -> Self
fn from(v: &'a &'a NicknameRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, NicknameRef>> for &'a NicknameRef
impl<'a, 'b: 'a> From<&'a Cow<'b, NicknameRef>> for &'a NicknameRef
Source§fn from(r: &'a Cow<'b, NicknameRef>) -> &'a NicknameRef
fn from(r: &'a Cow<'b, NicknameRef>) -> &'a NicknameRef
Converts to this type from the input type.
Source§impl<'a> From<&'a Nickname> for &'a NicknameRef
impl<'a> From<&'a Nickname> for &'a NicknameRef
Source§impl From<&NicknameRef> for Arc<NicknameRef>
impl From<&NicknameRef> for Arc<NicknameRef>
Source§fn from(r: &NicknameRef) -> Self
fn from(r: &NicknameRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a NicknameRef> for Cow<'a, NicknameRef>
impl<'a> From<&'a NicknameRef> for Cow<'a, NicknameRef>
Source§fn from(r: &'a NicknameRef) -> Self
fn from(r: &'a NicknameRef) -> Self
Converts to this type from the input type.
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<&NicknameRef> for Rc<NicknameRef>
impl From<&NicknameRef> for Rc<NicknameRef>
Source§fn from(r: &NicknameRef) -> Self
fn from(r: &NicknameRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a String> for &'a NicknameRef
impl<'a> From<&'a String> for &'a NicknameRef
Source§impl<'a> From<&'a str> for &'a NicknameRef
impl<'a> From<&'a str> for &'a NicknameRef
Source§fn from(s: &'a str) -> &'a NicknameRef
fn from(s: &'a str) -> &'a NicknameRef
Converts to this type from the input type.
Source§impl Hash for NicknameRef
impl Hash for NicknameRef
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 &'a NicknameRef
impl<'a> IntoCow<'a, NicknameRef> for &'a NicknameRef
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 NicknameRef
impl Ord for NicknameRef
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 PartialEq for NicknameRef
impl PartialEq for NicknameRef
Source§impl PartialOrd for NicknameRef
impl PartialOrd for NicknameRef
Source§impl Serialize for NicknameRef
Available on crate feature serde
only.
impl Serialize for NicknameRef
Available on crate feature
serde
only.