Struct twitch_types::DisplayNameRef
source · [−]#[repr(transparent)]pub struct DisplayNameRef(_);
Expand description
A users display name
Implementations
sourceimpl DisplayNameRef
impl DisplayNameRef
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 DisplayNameRef
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 DisplayNameRef
sourcepub fn into_owned(self: Box<DisplayNameRef>) -> DisplayName
pub fn into_owned(self: Box<DisplayNameRef>) -> DisplayName
Converts a Box<DisplayNameRef>
into a DisplayName
without copying or allocating
Trait Implementations
sourceimpl AsRef<DisplayNameRef> for DisplayName
impl AsRef<DisplayNameRef> for DisplayName
sourcefn as_ref(&self) -> &DisplayNameRef
fn as_ref(&self) -> &DisplayNameRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<str> for DisplayNameRef
impl AsRef<str> for DisplayNameRef
sourceimpl Borrow<DisplayNameRef> for DisplayName
impl Borrow<DisplayNameRef> for DisplayName
sourcefn borrow(&self) -> &DisplayNameRef
fn borrow(&self) -> &DisplayNameRef
Immutably borrows from an owned value. Read more
sourceimpl Borrow<str> for DisplayNameRef
impl Borrow<str> for DisplayNameRef
sourceimpl Debug for DisplayNameRef
impl Debug for DisplayNameRef
sourceimpl<'de: 'a, 'a> Deserialize<'de> for &'a DisplayNameRef
impl<'de: 'a, 'a> Deserialize<'de> for &'a DisplayNameRef
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<DisplayNameRef>
impl<'de> Deserialize<'de> for Box<DisplayNameRef>
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 DisplayNameRef
impl Display for DisplayNameRef
sourceimpl<'a, 'b: 'a> From<&'a Cow<'b, DisplayNameRef>> for &'a DisplayNameRef
impl<'a, 'b: 'a> From<&'a Cow<'b, DisplayNameRef>> for &'a DisplayNameRef
sourcefn from(r: &'a Cow<'b, DisplayNameRef>) -> &'a DisplayNameRef
fn from(r: &'a Cow<'b, DisplayNameRef>) -> &'a DisplayNameRef
Converts to this type from the input type.
sourceimpl<'a> From<&'a DisplayNameRef> for Cow<'a, DisplayNameRef>
impl<'a> From<&'a DisplayNameRef> for Cow<'a, DisplayNameRef>
sourcefn from(r: &'a DisplayNameRef) -> Self
fn from(r: &'a DisplayNameRef) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a str> for &'a DisplayNameRef
impl<'a> From<&'a str> for &'a DisplayNameRef
sourcefn from(s: &'a str) -> &'a DisplayNameRef
fn from(s: &'a str) -> &'a DisplayNameRef
Converts to this type from the input type.
sourceimpl From<&DisplayNameRef> for Arc<DisplayNameRef>
impl From<&DisplayNameRef> for Arc<DisplayNameRef>
sourcefn from(r: &DisplayNameRef) -> Self
fn from(r: &DisplayNameRef) -> Self
Converts to this type from the input type.
sourceimpl From<&DisplayNameRef> for DisplayName
impl From<&DisplayNameRef> for DisplayName
sourcefn from(s: &DisplayNameRef) -> Self
fn from(s: &DisplayNameRef) -> Self
Converts to this type from the input type.
sourceimpl From<&DisplayNameRef> for Rc<DisplayNameRef>
impl From<&DisplayNameRef> for Rc<DisplayNameRef>
sourcefn from(r: &DisplayNameRef) -> Self
fn from(r: &DisplayNameRef) -> Self
Converts to this type from the input type.
sourceimpl From<DisplayName> for Box<DisplayNameRef>
impl From<DisplayName> for Box<DisplayNameRef>
sourcefn from(r: DisplayName) -> Self
fn from(r: DisplayName) -> Self
Converts to this type from the input type.
sourceimpl Hash for DisplayNameRef
impl Hash for DisplayNameRef
sourceimpl Ord for DisplayNameRef
impl Ord for DisplayNameRef
sourceimpl PartialEq<&DisplayNameRef> for DisplayName
impl PartialEq<&DisplayNameRef> for DisplayName
sourcefn eq(&self, other: &&DisplayNameRef) -> bool
fn eq(&self, other: &&DisplayNameRef) -> bool
sourceimpl PartialEq<DisplayName> for &DisplayNameRef
impl PartialEq<DisplayName> for &DisplayNameRef
sourcefn eq(&self, other: &DisplayName) -> bool
fn eq(&self, other: &DisplayName) -> bool
sourceimpl PartialEq<DisplayName> for DisplayNameRef
impl PartialEq<DisplayName> for DisplayNameRef
sourcefn eq(&self, other: &DisplayName) -> bool
fn eq(&self, other: &DisplayName) -> bool
sourceimpl PartialEq<DisplayNameRef> for DisplayName
impl PartialEq<DisplayNameRef> for DisplayName
sourcefn eq(&self, other: &DisplayNameRef) -> bool
fn eq(&self, other: &DisplayNameRef) -> bool
sourceimpl PartialEq<DisplayNameRef> for DisplayNameRef
impl PartialEq<DisplayNameRef> for DisplayNameRef
sourcefn eq(&self, other: &DisplayNameRef) -> bool
fn eq(&self, other: &DisplayNameRef) -> bool
sourceimpl PartialOrd<DisplayNameRef> for DisplayNameRef
impl PartialOrd<DisplayNameRef> for DisplayNameRef
sourcefn partial_cmp(&self, other: &DisplayNameRef) -> Option<Ordering>
fn partial_cmp(&self, other: &DisplayNameRef) -> 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 moresourceimpl Serialize for DisplayNameRef
impl Serialize for DisplayNameRef
sourceimpl ToOwned for DisplayNameRef
impl ToOwned for DisplayNameRef
type Owned = DisplayName
type Owned = DisplayName
The resulting type after obtaining ownership.
sourcefn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · sourcefn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more