#[repr(transparent)]
pub struct OwnerNameRef(_);

Implementations§

source§

impl OwnerNameRef

source

pub const fn from_str(raw: &str) -> &Self

Transparently reinterprets the string slice as a strongly-typed OwnerNameRef

source

pub const fn from_static(raw: &'static str) -> &'static Self

Transparently reinterprets the static string slice as a strongly-typed OwnerNameRef

source

pub fn into_owned(self: Box<OwnerNameRef>) -> OwnerName

Converts a Box<OwnerNameRef> into a OwnerName without copying or allocating

source

pub const fn as_str(&self) -> &str

Provides access to the underlying value as a string slice.

Trait Implementations§

source§

impl AsRef<OwnerNameRef> for OwnerName

source§

fn as_ref(&self) -> &OwnerNameRef

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<str> for OwnerNameRef

source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<OwnerNameRef> for OwnerName

source§

fn borrow(&self) -> &OwnerNameRef

Immutably borrows from an owned value. Read more
source§

impl Borrow<str> for OwnerNameRef

source§

fn borrow(&self) -> &str

Immutably borrows from an owned value. Read more
source§

impl Debug for OwnerNameRef

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de: 'a, 'a> Deserialize<'de> for &'a OwnerNameRef

source§

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>

source§

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

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, 'b: 'a> From<&'a Cow<'b, OwnerNameRef>> for &'a OwnerNameRef

source§

fn from(r: &'a Cow<'b, OwnerNameRef>) -> &'a OwnerNameRef

Converts to this type from the input type.
source§

impl<'a> From<&'a OwnerNameRef> for Cow<'a, OwnerNameRef>

source§

fn from(r: &'a OwnerNameRef) -> Self

Converts to this type from the input type.
source§

impl<'a> From<&'a str> for &'a OwnerNameRef

source§

fn from(s: &'a str) -> &'a OwnerNameRef

Converts to this type from the input type.
source§

impl From<&OwnerNameRef> for Arc<OwnerNameRef>

source§

fn from(r: &OwnerNameRef) -> Self

Converts to this type from the input type.
source§

impl From<&OwnerNameRef> for OwnerName

source§

fn from(s: &OwnerNameRef) -> Self

Converts to this type from the input type.
source§

impl From<&OwnerNameRef> for Rc<OwnerNameRef>

source§

fn from(r: &OwnerNameRef) -> Self

Converts to this type from the input type.
source§

impl From<OwnerName> for Box<OwnerNameRef>

source§

fn from(r: OwnerName) -> Self

Converts to this type from the input type.
source§

impl Hash for OwnerNameRef

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
source§

impl Ord for OwnerNameRef

source§

fn cmp(&self, other: &OwnerNameRef) -> Ordering

This method returns an Ordering between self and other. Read more
source§

impl PartialEq<&OwnerNameRef> for OwnerName

source§

fn eq(&self, other: &&OwnerNameRef) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OwnerName> for &OwnerNameRef

source§

fn eq(&self, other: &OwnerName) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OwnerName> for OwnerNameRef

source§

fn eq(&self, other: &OwnerName) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OwnerNameRef> for OwnerName

source§

fn eq(&self, other: &OwnerNameRef) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<OwnerNameRef> for OwnerNameRef

source§

fn eq(&self, other: &OwnerNameRef) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<OwnerNameRef> for OwnerNameRef

source§

fn partial_cmp(&self, other: &OwnerNameRef) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for OwnerNameRef

source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl ToOwned for OwnerNameRef

§

type Owned = OwnerName

The resulting type after obtaining ownership.
source§

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)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl Eq for OwnerNameRef

source§

impl StructuralEq for OwnerNameRef

source§

impl StructuralPartialEq for OwnerNameRef

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more