pub enum StashReference {
Index(usize),
Commit(ObjectId),
}Expand description
How to address a stash entry or a stash-shaped commit.
Variants§
Index(usize)
Newest-first reflog index (stash@{{n}}).
Commit(ObjectId)
A stash W commit, on or off the stack.
Trait Implementations§
Source§impl Clone for StashReference
impl Clone for StashReference
impl Copy for StashReference
Source§impl Debug for StashReference
impl Debug for StashReference
impl Eq for StashReference
Source§impl PartialEq for StashReference
impl PartialEq for StashReference
impl StructuralPartialEq for StashReference
Auto Trait Implementations§
impl Forget for StashReference
impl Freeze for StashReference
impl RefUnwindSafe for StashReference
impl Send for StashReference
impl Sync for StashReference
impl Unpin for StashReference
impl UnsafeUnpin for StashReference
impl UnwindSafe for StashReference
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.