pub enum DiffAction {
}Expand description
Viewer action accepted by DiffViewer::apply.
Variants§
Scroll(Scroll)
Scroll the viewport.
Resize
Clamp scroll after a terminal resize.
FocusNext
Focus the next file or hunk target.
FocusPrevious
Focus the previous file or hunk target.
NextHunk
Focus the next hunk target.
PreviousHunk
Focus the previous hunk target.
ToggleFocusedFile
Toggle the focused file between collapsed and expanded states.
CollapseFocusedFile
Collapse the focused file, or report no change if it is already collapsed.
ToggleFileTree
Toggle the file tree between automatic visibility and hidden.
MoveFileTree(isize)
Move the file-tree cursor by visible rows, jumping to files as they are selected.
ShowFileTreeTarget
Show the current file-tree target without changing folder expansion.
ActivateFileTreeTarget
Activate the current file-tree target.
CollapseFileTreeFolder
Collapse the focused file-tree folder.
ExpandFileTreeFolder
Expand the focused file-tree folder.
Trait Implementations§
Source§impl Clone for DiffAction
impl Clone for DiffAction
Source§fn clone(&self) -> DiffAction
fn clone(&self) -> DiffAction
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 DiffAction
Source§impl Debug for DiffAction
impl Debug for DiffAction
impl Eq for DiffAction
Source§impl PartialEq for DiffAction
impl PartialEq for DiffAction
impl StructuralPartialEq for DiffAction
Auto Trait Implementations§
impl Freeze for DiffAction
impl RefUnwindSafe for DiffAction
impl Send for DiffAction
impl Sync for DiffAction
impl Unpin for DiffAction
impl UnsafeUnpin for DiffAction
impl UnwindSafe for DiffAction
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