pub struct OwnerName(/* private fields */);
Implementations§
Source§impl OwnerName
impl OwnerName
Sourcepub const fn new(raw: CompactString) -> Self
pub const fn new(raw: CompactString) -> Self
Constructs a new OwnerName
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a new OwnerName from a static reference
Sourcepub fn into_boxed_ref(self) -> Box<OwnerNameRef>
pub fn into_boxed_ref(self) -> Box<OwnerNameRef>
Converts this OwnerName
into a Box<OwnerNameRef>
This will drop any excess capacity.
Sourcepub fn take(self) -> CompactString
pub fn take(self) -> CompactString
Unwraps the underlying CompactString
value
Methods from Deref<Target = OwnerNameRef>§
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 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<'de> Deserialize<'de> for OwnerName
impl<'de> Deserialize<'de> for OwnerName
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 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<Box<OwnerNameRef>> for OwnerName
impl From<Box<OwnerNameRef>> for OwnerName
Source§fn from(r: Box<OwnerNameRef>) -> Self
fn from(r: Box<OwnerNameRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, OwnerNameRef>> for OwnerName
impl<'a> From<Cow<'a, OwnerNameRef>> for OwnerName
Source§fn from(r: Cow<'a, OwnerNameRef>) -> Self
fn from(r: Cow<'a, OwnerNameRef>) -> Self
Converts to this type from the input type.
Source§impl Ord for OwnerName
impl Ord for OwnerName
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 PartialOrd for OwnerName
impl PartialOrd for OwnerName
impl Eq for OwnerName
impl StructuralPartialEq for OwnerName
Auto Trait Implementations§
impl Freeze for OwnerName
impl RefUnwindSafe for OwnerName
impl Send for OwnerName
impl Sync for OwnerName
impl Unpin for OwnerName
impl UnwindSafe for OwnerName
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§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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more