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§impl PartialOrd for ReflogLookup
impl PartialOrd for ReflogLookup
impl 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