Type Alias twitch_types::UserNameRef
source · pub type UserNameRef = NicknameRef;
Expand description
A reference to a borrowed UserName
, also specified as login. Should not be capitalized.
Aliased Type§
struct UserNameRef(/* private fields */);
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<str> for NicknameRef
impl AsRef<str> for NicknameRef
source§impl Borrow<str> for NicknameRef
impl Borrow<str> for NicknameRef
source§impl Debug for NicknameRef
impl Debug for NicknameRef
source§impl Display for NicknameRef
impl Display for NicknameRef
source§impl Hash for NicknameRef
impl Hash for NicknameRef
source§impl Ord for NicknameRef
impl Ord for NicknameRef
source§impl PartialEq<Nickname> for NicknameRef
impl PartialEq<Nickname> for NicknameRef
source§impl PartialEq<NicknameRef> for NicknameRef
impl PartialEq<NicknameRef> for NicknameRef
source§fn eq(&self, other: &NicknameRef) -> bool
fn eq(&self, other: &NicknameRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
Available on crate feature serde
only.
impl Serialize for NicknameRef
Available on crate feature
serde
only.