Struct twitch_types::NicknameRef
source · #[repr(transparent)]pub struct NicknameRef(_);
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<'a>(&'a self) -> Cow<'a, NicknameRef>
pub fn as_cow<'a>(&'a self) -> Cow<'a, NicknameRef>
Get a
Cow<'_, NicknameRef>
Trait Implementations§
source§impl<'a> Arbitrary<'a> for &'a NicknameRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a NicknameRef
Available on crate feature
arbitrary
only.source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§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
impl<'de: 'a, 'a> Deserialize<'de> for &'a NicknameRef
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>
impl<'de> Deserialize<'de> for Box<NicknameRef>
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, '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<'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<'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 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 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 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 to_cow(self) -> Cow<'a, NicknameRef>
fn to_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 to_cow(self) -> Cow<'a, NicknameRef>
fn to_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 to_cow(self) -> Cow<'a, NicknameRef>
fn to_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§fn eq(&self, other: &&NicknameRef) -> bool
fn eq(&self, other: &&NicknameRef) -> bool
source§impl PartialEq<NicknameRef> for Nickname
impl PartialEq<NicknameRef> for Nickname
source§fn eq(&self, other: &NicknameRef) -> bool
fn eq(&self, other: &NicknameRef) -> bool
source§impl PartialEq<NicknameRef> for NicknameRef
impl PartialEq<NicknameRef> for NicknameRef
source§fn eq(&self, other: &NicknameRef) -> bool
fn eq(&self, other: &NicknameRef) -> bool
source§impl PartialOrd<NicknameRef> for NicknameRef
impl PartialOrd<NicknameRef> for NicknameRef
source§fn partial_cmp(&self, other: &NicknameRef) -> Option<Ordering>
fn partial_cmp(&self, other: &NicknameRef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for NicknameRef
impl Serialize for NicknameRef
source§impl ToOwned for NicknameRef
impl ToOwned for NicknameRef
source§impl<'zf> ZeroFrom<'zf, Nickname> for &'zf NicknameRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, Nickname> for &'zf NicknameRef
Available on crate feature
zerofrom
only.source§impl<'zf> ZeroFrom<'zf, NicknameRef> for &'zf NicknameRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, NicknameRef> for &'zf NicknameRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf NicknameRef) -> Self
fn zero_from(other: &'zf NicknameRef) -> Self
Clone the other
C
into a struct that may retain references into C
.