Struct twitch_types::DisplayName
source · [−]#[repr(transparent)]pub struct DisplayName(_);
Expand description
A users display name
Implementations
sourceimpl DisplayName
impl DisplayName
sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a new DisplayName from a static reference
sourcepub fn into_boxed_ref(self) -> Box<DisplayNameRef>
pub fn into_boxed_ref(self) -> Box<DisplayNameRef>
Converts this DisplayName
into a Box<DisplayNameRef>
This will drop any excess capacity.
Methods from Deref<Target = DisplayNameRef>
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 DisplayName
impl AsRef<str> for DisplayName
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 DisplayName
impl Borrow<str> for DisplayName
sourceimpl Clone for DisplayName
impl Clone for DisplayName
sourcefn clone(&self) -> DisplayName
fn clone(&self) -> DisplayName
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DisplayName
impl Debug for DisplayName
sourceimpl Deref for DisplayName
impl Deref for DisplayName
type Target = DisplayNameRef
type Target = DisplayNameRef
The resulting type after dereferencing.
sourceimpl<'de> Deserialize<'de> for DisplayName
impl<'de> Deserialize<'de> for DisplayName
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 DisplayName
impl Display for DisplayName
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<&str> for DisplayName
impl From<&str> for DisplayName
sourceimpl From<Box<DisplayNameRef, Global>> for DisplayName
impl From<Box<DisplayNameRef, Global>> for DisplayName
sourcefn from(r: Box<DisplayNameRef>) -> Self
fn from(r: Box<DisplayNameRef>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<Cow<'a, DisplayNameRef>> for DisplayName
impl<'a> From<Cow<'a, DisplayNameRef>> for DisplayName
sourcefn from(r: Cow<'a, DisplayNameRef>) -> Self
fn from(r: Cow<'a, 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<'a> From<DisplayName> for Cow<'a, DisplayNameRef>
impl<'a> From<DisplayName> for Cow<'a, DisplayNameRef>
sourcefn from(owned: DisplayName) -> Self
fn from(owned: DisplayName) -> Self
Converts to this type from the input type.
sourceimpl From<String> for DisplayName
impl From<String> for DisplayName
sourceimpl FromStr for DisplayName
impl FromStr for DisplayName
sourceimpl Hash for DisplayName
impl Hash for DisplayName
sourceimpl Ord for DisplayName
impl Ord for DisplayName
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
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 DisplayName
impl PartialEq<DisplayName> for DisplayName
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 PartialOrd<DisplayName> for DisplayName
impl PartialOrd<DisplayName> for DisplayName
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> 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 DisplayName
impl Serialize for DisplayName
impl Eq for DisplayName
impl StructuralEq for DisplayName
impl StructuralPartialEq for DisplayName
Auto Trait Implementations
impl RefUnwindSafe for DisplayName
impl Send for DisplayName
impl Sync for DisplayName
impl Unpin for DisplayName
impl UnwindSafe for DisplayName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more