pub struct DisplayNameRef(/* private fields */);Expand description
A reference to a borrowed DisplayName
Implementations§
Source§impl DisplayNameRef
impl DisplayNameRef
Sourcepub fn from_str(raw: &str) -> &Self
pub fn from_str(raw: &str) -> &Self
Transparently reinterprets the 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§
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 DisplayNameRef
impl AsRef<str> for DisplayNameRef
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 DisplayNameRef
impl Borrow<str> for DisplayNameRef
Source§impl Debug for DisplayNameRef
impl Debug for DisplayNameRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a DisplayNameRef
impl<'de: 'a, 'a> Deserialize<'de> for &'a DisplayNameRef
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<'de> Deserialize<'de> for Box<DisplayNameRef>
impl<'de> Deserialize<'de> for Box<DisplayNameRef>
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 DisplayNameRef
impl Display for DisplayNameRef
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, DisplayNameRef>> for &'a DisplayNameRef
impl<'a, 'b: 'a> From<&'a Cow<'b, DisplayNameRef>> for &'a DisplayNameRef
Source§fn 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.
Source§impl<'a> From<&'a DisplayNameRef> for Cow<'a, DisplayNameRef>
impl<'a> From<&'a DisplayNameRef> for Cow<'a, DisplayNameRef>
Source§fn from(r: &'a DisplayNameRef) -> Self
fn from(r: &'a DisplayNameRef) -> 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<'a> From<&'a str> for &'a DisplayNameRef
impl<'a> From<&'a str> for &'a DisplayNameRef
Source§fn from(s: &'a str) -> &'a DisplayNameRef
fn from(s: &'a str) -> &'a DisplayNameRef
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 Hash for DisplayNameRef
impl Hash for DisplayNameRef
Source§impl PartialEq<&DisplayNameRef> for Box<DisplayNameRef>
impl PartialEq<&DisplayNameRef> for Box<DisplayNameRef>
Source§impl PartialEq<&DisplayNameRef> for DisplayName
impl PartialEq<&DisplayNameRef> for DisplayName
Source§impl PartialEq<&DisplayNameRef> for DisplayNameRef
impl PartialEq<&DisplayNameRef> for DisplayNameRef
Source§impl PartialEq<Box<DisplayNameRef>> for &DisplayNameRef
impl PartialEq<Box<DisplayNameRef>> for &DisplayNameRef
Source§impl PartialEq<Box<DisplayNameRef>> for DisplayNameRef
impl PartialEq<Box<DisplayNameRef>> for DisplayNameRef
Source§impl PartialEq<DisplayName> for &DisplayNameRef
impl PartialEq<DisplayName> for &DisplayNameRef
Source§impl PartialEq<DisplayName> for Box<DisplayNameRef>
impl PartialEq<DisplayName> for Box<DisplayNameRef>
Source§impl PartialEq<DisplayName> for DisplayNameRef
impl PartialEq<DisplayName> for DisplayNameRef
Source§impl PartialEq<DisplayNameRef> for &DisplayNameRef
impl PartialEq<DisplayNameRef> for &DisplayNameRef
Source§impl PartialEq<DisplayNameRef> for DisplayName
impl PartialEq<DisplayNameRef> for DisplayName
Source§impl PartialEq for DisplayNameRef
impl PartialEq for DisplayNameRef
Source§impl Serialize for DisplayNameRef
impl Serialize for DisplayNameRef
Source§impl ToOwned for DisplayNameRef
impl ToOwned for DisplayNameRef
Source§type Owned = DisplayName
type Owned = DisplayName
The resulting type after obtaining ownership.
Source§fn 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 · Source§fn 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
impl Eq for DisplayNameRef
Auto Trait Implementations§
impl Freeze for DisplayNameRef
impl RefUnwindSafe for DisplayNameRef
impl Send for DisplayNameRef
impl !Sized for DisplayNameRef
impl Sync for DisplayNameRef
impl Unpin for DisplayNameRef
impl UnwindSafe for DisplayNameRef
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.