Struct gix_ref::PartialName
source · 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 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§fn eq(&self, other: &PartialName) -> bool
fn eq(&self, other: &PartialName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PartialName
impl PartialOrd for PartialName
source§fn partial_cmp(&self, other: &PartialName) -> Option<Ordering>
fn partial_cmp(&self, other: &PartialName) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§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 StructuralEq for PartialName
impl StructuralPartialEq for PartialName
Auto Trait Implementations§
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