pub struct PartialName(/* private fields */);
Expand description
A validated and potentially partial reference name, safe to use for common operations.
Implementations§
Trait Implementations§
Source§impl AsRef<PartialNameRef> for PartialName
impl AsRef<PartialNameRef> for PartialName
Source§fn as_ref(&self) -> &PartialNameRef
fn as_ref(&self) -> &PartialNameRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<PartialNameRef> for PartialName
impl Borrow<PartialNameRef> for PartialName
Source§fn borrow(&self) -> &PartialNameRef
fn borrow(&self) -> &PartialNameRef
Immutably borrows from an owned value. Read more
Source§impl Clone for PartialName
impl Clone for PartialName
Source§fn clone(&self) -> PartialName
fn clone(&self) -> PartialName
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 PartialName
impl Debug for PartialName
Source§impl<'de> Deserialize<'de> for PartialName
impl<'de> Deserialize<'de> for PartialName
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for PartialName
impl Hash for PartialName
Source§impl Ord for PartialName
impl Ord for PartialName
Source§fn cmp(&self, other: &PartialName) -> Ordering
fn cmp(&self, other: &PartialName) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PartialName
impl PartialEq for PartialName
Source§impl PartialOrd for PartialName
impl PartialOrd for PartialName
Source§impl Serialize for PartialName
impl Serialize for PartialName
Source§impl<'a> TryFrom<&'a PartialName> for &'a PartialNameRef
impl<'a> TryFrom<&'a PartialName> for &'a PartialNameRef
Source§impl<'a> TryFrom<&'a str> for PartialName
impl<'a> TryFrom<&'a str> for PartialName
Source§impl TryFrom<BString> for PartialName
impl TryFrom<BString> for PartialName
Source§impl TryFrom<String> for PartialName
impl TryFrom<String> for PartialName
impl Eq for PartialName
impl StructuralPartialEq for PartialName
Auto Trait Implementations§
impl Freeze for PartialName
impl RefUnwindSafe for PartialName
impl Send for PartialName
impl Sync for PartialName
impl Unpin for PartialName
impl UnwindSafe for PartialName
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