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
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
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
)