Struct gix_ref::PartialNameCow
source · pub struct PartialNameCow<'a>(/* private fields */);
Expand description
A validated and potentially partial reference name, safe to use for common operations.
Trait Implementations§
source§impl<'a> Clone for PartialNameCow<'a>
impl<'a> Clone for PartialNameCow<'a>
source§fn clone(&self) -> PartialNameCow<'a>
fn clone(&self) -> PartialNameCow<'a>
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<'a> Debug for PartialNameCow<'a>
impl<'a> Debug for PartialNameCow<'a>
source§impl<'a> Hash for PartialNameCow<'a>
impl<'a> Hash for PartialNameCow<'a>
source§impl<'a> Ord for PartialNameCow<'a>
impl<'a> Ord for PartialNameCow<'a>
source§fn cmp(&self, other: &PartialNameCow<'a>) -> Ordering
fn cmp(&self, other: &PartialNameCow<'a>) -> 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<'a> PartialEq for PartialNameCow<'a>
impl<'a> PartialEq for PartialNameCow<'a>
source§fn eq(&self, other: &PartialNameCow<'a>) -> bool
fn eq(&self, other: &PartialNameCow<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for PartialNameCow<'a>
impl<'a> PartialOrd for PartialNameCow<'a>
source§fn partial_cmp(&self, other: &PartialNameCow<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &PartialNameCow<'a>) -> 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 moreimpl<'a> Eq for PartialNameCow<'a>
impl<'a> StructuralEq for PartialNameCow<'a>
impl<'a> StructuralPartialEq for PartialNameCow<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PartialNameCow<'a>
impl<'a> Send for PartialNameCow<'a>
impl<'a> Sync for PartialNameCow<'a>
impl<'a> Unpin for PartialNameCow<'a>
impl<'a> UnwindSafe for PartialNameCow<'a>
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