Struct twitch_types::Nickname
source · #[repr(transparent)]pub struct Nickname(_);
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 new Nickname from 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<'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 Nickname
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for Nickname
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 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
impl<'de> Deserialize<'de> for Nickname
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, Global>> for Nickname
impl From<Box<NicknameRef, Global>> 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 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 Nickname
impl Ord for Nickname
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 PartialOrd<Nickname> for Nickname
impl PartialOrd<Nickname> for Nickname
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<'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.