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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)