pub enum KeyAction {
Show 13 variants
InsertChar(char),
Backspace,
Delete,
CursorLeft,
CursorRight,
CursorHome,
CursorEnd,
Evaluate,
Clear,
ClearAll,
RecallLast,
Quit,
None,
}Expand description
Actions that can be triggered by keyboard input
Variants§
InsertChar(char)
Insert a character
Backspace
Delete character before cursor (backspace)
Delete
Delete character at cursor
CursorLeft
Move cursor left
CursorRight
Move cursor right
CursorHome
Move cursor to start
CursorEnd
Move cursor to end
Evaluate
Evaluate the expression
Clear
Clear the input
ClearAll
Clear everything including history
RecallLast
Recall last expression from history
Quit
Quit the application
None
No action (ignored input)
Trait Implementations§
impl Copy for KeyAction
impl Eq for KeyAction
impl StructuralPartialEq for KeyAction
Auto Trait Implementations§
impl Freeze for KeyAction
impl RefUnwindSafe for KeyAction
impl Send for KeyAction
impl Sync for KeyAction
impl Unpin for KeyAction
impl UnsafeUnpin for KeyAction
impl UnwindSafe for KeyAction
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