Struct twitch_types::NicknameRef
source · [−]#[repr(transparent)]pub struct NicknameRef(_);
Expand description
A nickname, not capitalized.
Implementations
sourceimpl 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
Trait Implementations
sourceimpl AsRef<NicknameRef> for Nickname
impl AsRef<NicknameRef> for Nickname
sourcefn as_ref(&self) -> &NicknameRef
fn as_ref(&self) -> &NicknameRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<str> for NicknameRef
impl AsRef<str> for NicknameRef
sourceimpl Borrow<NicknameRef> for Nickname
impl Borrow<NicknameRef> for Nickname
sourcefn borrow(&self) -> &NicknameRef
fn borrow(&self) -> &NicknameRef
Immutably borrows from an owned value. Read more
sourceimpl Borrow<str> for NicknameRef
impl Borrow<str> for NicknameRef
sourceimpl Debug for NicknameRef
impl Debug for NicknameRef
sourceimpl<'de: 'a, 'a> Deserialize<'de> for &'a NicknameRef
impl<'de: 'a, 'a> Deserialize<'de> for &'a NicknameRef
sourcefn 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
sourceimpl<'de> Deserialize<'de> for Box<NicknameRef>
impl<'de> Deserialize<'de> for Box<NicknameRef>
sourcefn 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
sourceimpl Display for NicknameRef
impl Display for NicknameRef
sourceimpl<'a, 'b: 'a> From<&'a Cow<'b, NicknameRef>> for &'a NicknameRef
impl<'a, 'b: 'a> From<&'a Cow<'b, NicknameRef>> for &'a NicknameRef
sourcefn 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.
sourceimpl<'a> From<&'a NicknameRef> for Cow<'a, NicknameRef>
impl<'a> From<&'a NicknameRef> for Cow<'a, NicknameRef>
sourcefn from(r: &'a NicknameRef) -> Self
fn from(r: &'a NicknameRef) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a str> for &'a NicknameRef
impl<'a> From<&'a str> for &'a NicknameRef
sourcefn from(s: &'a str) -> &'a NicknameRef
fn from(s: &'a str) -> &'a NicknameRef
Converts to this type from the input type.
sourceimpl From<&NicknameRef> for Arc<NicknameRef>
impl From<&NicknameRef> for Arc<NicknameRef>
sourcefn from(r: &NicknameRef) -> Self
fn from(r: &NicknameRef) -> Self
Converts to this type from the input type.
sourceimpl From<&NicknameRef> for Nickname
impl From<&NicknameRef> for Nickname
sourcefn from(s: &NicknameRef) -> Self
fn from(s: &NicknameRef) -> Self
Converts to this type from the input type.
sourceimpl From<&NicknameRef> for Rc<NicknameRef>
impl From<&NicknameRef> for Rc<NicknameRef>
sourcefn from(r: &NicknameRef) -> Self
fn from(r: &NicknameRef) -> Self
Converts to this type from the input type.
sourceimpl From<Nickname> for Box<NicknameRef>
impl From<Nickname> for Box<NicknameRef>
sourceimpl Hash for NicknameRef
impl Hash for NicknameRef
sourceimpl Ord for NicknameRef
impl Ord for NicknameRef
sourceimpl PartialEq<&NicknameRef> for Nickname
impl PartialEq<&NicknameRef> for Nickname
sourcefn eq(&self, other: &&NicknameRef) -> bool
fn eq(&self, other: &&NicknameRef) -> bool
sourceimpl PartialEq<NicknameRef> for Nickname
impl PartialEq<NicknameRef> for Nickname
sourcefn eq(&self, other: &NicknameRef) -> bool
fn eq(&self, other: &NicknameRef) -> bool
sourceimpl PartialEq<NicknameRef> for NicknameRef
impl PartialEq<NicknameRef> for NicknameRef
sourcefn eq(&self, other: &NicknameRef) -> bool
fn eq(&self, other: &NicknameRef) -> bool
sourceimpl PartialOrd<NicknameRef> for NicknameRef
impl PartialOrd<NicknameRef> for NicknameRef
sourcefn partial_cmp(&self, other: &NicknameRef) -> Option<Ordering>
fn partial_cmp(&self, other: &NicknameRef) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 more