pub struct OwnerNameRef(/* private fields */);
Implementations§
Source§impl OwnerNameRef
impl OwnerNameRef
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 OwnerNameRef
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 OwnerNameRef
Sourcepub fn into_owned(self: Box<OwnerNameRef>) -> OwnerName
pub fn into_owned(self: Box<OwnerNameRef>) -> OwnerName
Converts a Box<OwnerNameRef>
into a OwnerName
without copying or allocating
Trait Implementations§
Source§impl AsRef<OwnerNameRef> for OwnerName
impl AsRef<OwnerNameRef> for OwnerName
Source§fn as_ref(&self) -> &OwnerNameRef
fn as_ref(&self) -> &OwnerNameRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for OwnerNameRef
impl AsRef<str> for OwnerNameRef
Source§impl Borrow<OwnerNameRef> for OwnerName
impl Borrow<OwnerNameRef> for OwnerName
Source§fn borrow(&self) -> &OwnerNameRef
fn borrow(&self) -> &OwnerNameRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for OwnerNameRef
impl Borrow<str> for OwnerNameRef
Source§impl Debug for OwnerNameRef
impl Debug for OwnerNameRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a OwnerNameRef
impl<'de: 'a, 'a> Deserialize<'de> for &'a OwnerNameRef
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<OwnerNameRef>
impl<'de> Deserialize<'de> for Box<OwnerNameRef>
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 OwnerNameRef
impl Display for OwnerNameRef
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, OwnerNameRef>> for &'a OwnerNameRef
impl<'a, 'b: 'a> From<&'a Cow<'b, OwnerNameRef>> for &'a OwnerNameRef
Source§fn from(r: &'a Cow<'b, OwnerNameRef>) -> &'a OwnerNameRef
fn from(r: &'a Cow<'b, OwnerNameRef>) -> &'a OwnerNameRef
Converts to this type from the input type.
Source§impl From<&OwnerNameRef> for Arc<OwnerNameRef>
impl From<&OwnerNameRef> for Arc<OwnerNameRef>
Source§fn from(r: &OwnerNameRef) -> Self
fn from(r: &OwnerNameRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a OwnerNameRef> for Cow<'a, OwnerNameRef>
impl<'a> From<&'a OwnerNameRef> for Cow<'a, OwnerNameRef>
Source§fn from(r: &'a OwnerNameRef) -> Self
fn from(r: &'a OwnerNameRef) -> Self
Converts to this type from the input type.
Source§impl From<&OwnerNameRef> for OwnerName
impl From<&OwnerNameRef> for OwnerName
Source§fn from(s: &OwnerNameRef) -> Self
fn from(s: &OwnerNameRef) -> Self
Converts to this type from the input type.
Source§impl From<&OwnerNameRef> for Rc<OwnerNameRef>
impl From<&OwnerNameRef> for Rc<OwnerNameRef>
Source§fn from(r: &OwnerNameRef) -> Self
fn from(r: &OwnerNameRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a str> for &'a OwnerNameRef
impl<'a> From<&'a str> for &'a OwnerNameRef
Source§fn from(s: &'a str) -> &'a OwnerNameRef
fn from(s: &'a str) -> &'a OwnerNameRef
Converts to this type from the input type.
Source§impl Hash for OwnerNameRef
impl Hash for OwnerNameRef
Source§impl Ord for OwnerNameRef
impl Ord for OwnerNameRef
Source§impl PartialEq<&OwnerNameRef> for OwnerName
impl PartialEq<&OwnerNameRef> for OwnerName
Source§impl PartialEq<OwnerName> for &OwnerNameRef
impl PartialEq<OwnerName> for &OwnerNameRef
Source§impl PartialEq<OwnerName> for OwnerNameRef
impl PartialEq<OwnerName> for OwnerNameRef
Source§impl PartialEq<OwnerNameRef> for OwnerName
impl PartialEq<OwnerNameRef> for OwnerName
Source§impl PartialEq for OwnerNameRef
impl PartialEq for OwnerNameRef
Source§impl PartialOrd for OwnerNameRef
impl PartialOrd for OwnerNameRef
Source§impl Serialize for OwnerNameRef
impl Serialize for OwnerNameRef
Source§impl ToOwned for OwnerNameRef
impl ToOwned for OwnerNameRef
impl Eq for OwnerNameRef
impl StructuralPartialEq for OwnerNameRef
Auto Trait Implementations§
impl Freeze for OwnerNameRef
impl RefUnwindSafe for OwnerNameRef
impl Send for OwnerNameRef
impl !Sized for OwnerNameRef
impl Sync for OwnerNameRef
impl Unpin for OwnerNameRef
impl UnwindSafe for OwnerNameRef
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.