Enum gix_revision::spec::parse::delegate::PrefixHint
source · pub enum PrefixHint<'a> {
MustBeCommit,
DescribeAnchor {
ref_name: &'a BStr,
generation: usize,
},
}
Expand description
A hint to make disambiguation when looking up prefixes possible.
Variants§
MustBeCommit
The prefix must be a commit.
DescribeAnchor
Fields
The prefix refers to a commit, anchored to a ref and a revision generation in its future.
Trait Implementations§
source§impl<'a> Clone for PrefixHint<'a>
impl<'a> Clone for PrefixHint<'a>
source§fn clone(&self) -> PrefixHint<'a>
fn clone(&self) -> PrefixHint<'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 PrefixHint<'a>
impl<'a> Debug for PrefixHint<'a>
source§impl<'a> Hash for PrefixHint<'a>
impl<'a> Hash for PrefixHint<'a>
source§impl<'a> Ord for PrefixHint<'a>
impl<'a> Ord for PrefixHint<'a>
source§fn cmp(&self, other: &PrefixHint<'a>) -> Ordering
fn cmp(&self, other: &PrefixHint<'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<PrefixHint<'a>> for PrefixHint<'a>
impl<'a> PartialEq<PrefixHint<'a>> for PrefixHint<'a>
source§fn eq(&self, other: &PrefixHint<'a>) -> bool
fn eq(&self, other: &PrefixHint<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd<PrefixHint<'a>> for PrefixHint<'a>
impl<'a> PartialOrd<PrefixHint<'a>> for PrefixHint<'a>
source§fn partial_cmp(&self, other: &PrefixHint<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &PrefixHint<'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> Copy for PrefixHint<'a>
impl<'a> Eq for PrefixHint<'a>
impl<'a> StructuralEq for PrefixHint<'a>
impl<'a> StructuralPartialEq for PrefixHint<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PrefixHint<'a>
impl<'a> Send for PrefixHint<'a>
impl<'a> Sync for PrefixHint<'a>
impl<'a> Unpin for PrefixHint<'a>
impl<'a> UnwindSafe for PrefixHint<'a>
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more