pub struct DisplayName(/* private fields */);
Expand description
A users display name
Implementations§
Source§impl DisplayName
impl DisplayName
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newDisplayNamefrom 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>§
Sourcepub fn as_cow(&self) -> Cow<'_, DisplayNameRef>
pub fn as_cow(&self) -> Cow<'_, DisplayNameRef>
Get a
Cow<'_, DisplayNameRef>
Trait Implementations§
Source§impl AsRef<DisplayNameRef> for DisplayName
impl AsRef<DisplayNameRef> for DisplayName
Source§fn as_ref(&self) -> &DisplayNameRef
fn as_ref(&self) -> &DisplayNameRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for DisplayName
impl AsRef<str> for DisplayName
Source§impl Borrow<DisplayNameRef> for DisplayName
impl Borrow<DisplayNameRef> for DisplayName
Source§fn borrow(&self) -> &DisplayNameRef
fn borrow(&self) -> &DisplayNameRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for DisplayName
impl Borrow<str> for DisplayName
Source§impl Clone for DisplayName
impl Clone for DisplayName
Source§fn clone(&self) -> DisplayName
fn clone(&self) -> DisplayName
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DisplayName
impl Debug for DisplayName
Source§impl Deref for DisplayName
impl Deref for DisplayName
Source§impl<'de> Deserialize<'de> for DisplayName
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for DisplayName
Available on crate feature
serde
only.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 Display for DisplayName
impl Display for DisplayName
Source§impl<'a> From<&'a DisplayName> for &'a DisplayNameRef
impl<'a> From<&'a DisplayName> for &'a DisplayNameRef
Source§fn from(owned: &'a DisplayName) -> Self
fn from(owned: &'a DisplayName) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a DisplayName> for Collection<'a, DisplayName>
impl<'a> From<&'a DisplayName> for Collection<'a, DisplayName>
Source§fn from(v: &'a DisplayName) -> Self
fn from(v: &'a DisplayName) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a DisplayName> for Cow<'a, DisplayNameRef>
impl<'a> From<&'a DisplayName> for Cow<'a, DisplayNameRef>
Source§fn from(owned: &'a DisplayName) -> Self
fn from(owned: &'a DisplayName) -> Self
Converts to this type from the input type.
Source§impl From<&DisplayNameRef> for DisplayName
impl From<&DisplayNameRef> for DisplayName
Source§fn from(s: &DisplayNameRef) -> Self
fn from(s: &DisplayNameRef) -> Self
Converts to this type from the input type.
Source§impl From<&str> for DisplayName
impl From<&str> for DisplayName
Source§impl From<Box<DisplayNameRef>> for DisplayName
impl From<Box<DisplayNameRef>> for DisplayName
Source§fn from(r: Box<DisplayNameRef>) -> Self
fn from(r: Box<DisplayNameRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, DisplayNameRef>> for DisplayName
impl<'a> From<Cow<'a, DisplayNameRef>> for DisplayName
Source§fn from(r: Cow<'a, DisplayNameRef>) -> Self
fn from(r: Cow<'a, DisplayNameRef>) -> Self
Converts to this type from the input type.
Source§impl From<DisplayName> for Box<DisplayNameRef>
impl From<DisplayName> for Box<DisplayNameRef>
Source§fn from(r: DisplayName) -> Self
fn from(r: DisplayName) -> Self
Converts to this type from the input type.
Source§impl<'a> From<DisplayName> for Cow<'a, DisplayNameRef>
impl<'a> From<DisplayName> for Cow<'a, DisplayNameRef>
Source§fn from(owned: DisplayName) -> Self
fn from(owned: DisplayName) -> Self
Converts to this type from the input type.
Source§impl From<DisplayName> for String
impl From<DisplayName> for String
Source§fn from(s: DisplayName) -> Self
fn from(s: DisplayName) -> Self
Converts to this type from the input type.
Source§impl From<String> for DisplayName
impl From<String> for DisplayName
Source§impl FromStr for DisplayName
impl FromStr for DisplayName
Source§impl Hash for DisplayName
impl Hash for DisplayName
Source§impl<'a> IntoCow<'a, DisplayNameRef> for &'a DisplayName
impl<'a> IntoCow<'a, DisplayNameRef> for &'a DisplayName
Source§fn into_cow(self) -> Cow<'a, DisplayNameRef>
fn into_cow(self) -> Cow<'a, DisplayNameRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, DisplayNameRef> for DisplayName
impl<'a> IntoCow<'a, DisplayNameRef> for DisplayName
Source§fn into_cow(self) -> Cow<'a, DisplayNameRef>
fn into_cow(self) -> Cow<'a, DisplayNameRef>
Make the cow with proper ownership, muu
Source§impl Ord for DisplayName
impl Ord for DisplayName
Source§impl PartialEq<&DisplayName> for DisplayName
impl PartialEq<&DisplayName> for DisplayName
Source§impl PartialEq<&DisplayNameRef> for DisplayName
impl PartialEq<&DisplayNameRef> for DisplayName
Source§impl PartialEq<DisplayName> for &DisplayNameRef
impl PartialEq<DisplayName> for &DisplayNameRef
Source§impl PartialEq<DisplayName> for DisplayNameRef
impl PartialEq<DisplayName> for DisplayNameRef
Source§impl PartialEq<DisplayNameRef> for DisplayName
impl PartialEq<DisplayNameRef> for DisplayName
Source§impl PartialEq for DisplayName
impl PartialEq for DisplayName
Source§impl PartialOrd for DisplayName
impl PartialOrd for DisplayName
Source§impl Serialize for DisplayName
Available on crate feature serde
only.
impl Serialize for DisplayName
Available on crate feature
serde
only.impl Eq for DisplayName
impl StructuralPartialEq for DisplayName
Auto Trait Implementations§
impl Freeze for DisplayName
impl RefUnwindSafe for DisplayName
impl Send for DisplayName
impl Sync for DisplayName
impl Unpin for DisplayName
impl UnwindSafe for DisplayName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)