pub enum Action {
Show 13 variants
Quit,
Recenter,
MoveUp,
MoveDown,
MoveLeft,
MoveRight,
ToggleExpand,
Stage,
Discard,
Unstage,
ToggleLegend,
InitLegend {
hide: bool,
label_show: String,
label_hide: String,
highlight_active_binding: bool,
},
ExecuteCommand(ExternalCommand),
}Variants§
Quit
Recenter
MoveUp
MoveDown
MoveLeft
MoveRight
ToggleExpand
Stage
Discard
Unstage
ToggleLegend
InitLegend
ExecuteCommand(ExternalCommand)
Implementations§
Source§impl Action
impl Action
pub fn is_applicable(&self, tree: &DiffTreeWidget) -> bool
Trait Implementations§
Source§impl<'text, 'raw> TryFrom<RawJsonValue<'text, 'raw>> for Action
impl<'text, 'raw> TryFrom<RawJsonValue<'text, 'raw>> for Action
Source§type Error = JsonParseError
type Error = JsonParseError
The type returned in the event of a conversion error.
impl Action for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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