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
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 for PrefixHint<'a>
impl<'a> PartialEq for PrefixHint<'a>
Source§impl<'a> PartialOrd for PrefixHint<'a>
impl<'a> PartialOrd for PrefixHint<'a>
impl<'a> Copy for PrefixHint<'a>
impl<'a> Eq for PrefixHint<'a>
impl<'a> StructuralPartialEq for PrefixHint<'a>
Auto Trait Implementations§
impl<'a> Freeze for PrefixHint<'a>
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§
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