pub enum ApplyDirection {
Forward,
Reverse,
}Expand description
Which way a patch will be handed to git apply, and therefore
which side of it the target already matches.
MG.18e: this is the only thing that distinguishes staging a region from unstaging one. The two are mirror images — one function with a flag, not two that can drift.
Variants§
Forward
s — the target holds the hunk’s old side.
Reverse
u / x — the target holds the hunk’s new side.
Trait Implementations§
Source§impl Clone for ApplyDirection
impl Clone for ApplyDirection
Source§fn clone(&self) -> ApplyDirection
fn clone(&self) -> ApplyDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ApplyDirection
Source§impl Debug for ApplyDirection
impl Debug for ApplyDirection
impl Eq for ApplyDirection
Source§impl PartialEq for ApplyDirection
impl PartialEq for ApplyDirection
impl StructuralPartialEq for ApplyDirection
Auto Trait Implementations§
impl Freeze for ApplyDirection
impl RefUnwindSafe for ApplyDirection
impl Send for ApplyDirection
impl Sync for ApplyDirection
impl Unpin for ApplyDirection
impl UnsafeUnpin for ApplyDirection
impl UnwindSafe for ApplyDirection
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more