pub enum DiffSide {
Unstaged,
Staged,
Other,
}Expand description
Which tree/index/worktree sides a hunk was produced from.
Variants§
Unstaged
Index compared to worktree (unstaged changes).
Staged
HEAD tree compared to index (staged changes).
Other
Commit, tree, or other comparisons (ids are computed but not selectable yet).
Trait Implementations§
impl Copy for DiffSide
impl Eq for DiffSide
impl StructuralPartialEq for DiffSide
Auto Trait Implementations§
impl Freeze for DiffSide
impl RefUnwindSafe for DiffSide
impl Send for DiffSide
impl Sync for DiffSide
impl Unpin for DiffSide
impl UnsafeUnpin for DiffSide
impl UnwindSafe for DiffSide
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