Enum gix_revision::spec::parse::delegate::ReflogLookup
source · pub enum ReflogLookup {
Entry(usize),
Date(Time),
}
Expand description
A lookup into the reflog of a reference.
Variants§
Entry(usize)
Lookup by entry, where 0
is the most recent entry, and 1
is the older one behind 0
.
Date(Time)
Lookup the reflog at the given time and find the closest matching entry.
Trait Implementations§
source§impl Clone for ReflogLookup
impl Clone for ReflogLookup
source§fn clone(&self) -> ReflogLookup
fn clone(&self) -> ReflogLookup
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 ReflogLookup
impl Debug for ReflogLookup
source§impl Hash for ReflogLookup
impl Hash for ReflogLookup
source§impl Ord for ReflogLookup
impl Ord for ReflogLookup
source§fn cmp(&self, other: &ReflogLookup) -> Ordering
fn cmp(&self, other: &ReflogLookup) -> 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 ReflogLookup
impl PartialEq for ReflogLookup
source§fn eq(&self, other: &ReflogLookup) -> bool
fn eq(&self, other: &ReflogLookup) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ReflogLookup
impl PartialOrd for ReflogLookup
source§fn partial_cmp(&self, other: &ReflogLookup) -> Option<Ordering>
fn partial_cmp(&self, other: &ReflogLookup) -> 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 Copy for ReflogLookup
impl Eq for ReflogLookup
impl StructuralPartialEq for ReflogLookup
Auto Trait Implementations§
impl Freeze for ReflogLookup
impl RefUnwindSafe for ReflogLookup
impl Send for ReflogLookup
impl Sync for ReflogLookup
impl Unpin for ReflogLookup
impl UnwindSafe for ReflogLookup
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)