pub enum KeyEvent {
Show 14 variants
Normal(char),
Left,
Right,
Up,
Down,
Home,
End,
Backspace,
Delete,
Enter,
CtrlLeft,
CtrlRight,
CtrlDelete,
AltBackspace,
}Expand description
Key events that can be processed by the line editor
Variants§
Normal(char)
Normal printable character
Left
Left arrow
Right
Right arrow
Up
Up arrow (history previous)
Down
Down arrow (history next)
Home
Home key
End
End key
Backspace
Backspace
Delete
Delete
Enter
Enter/Return
CtrlLeft
Ctrl+Left (word left)
CtrlRight
Ctrl+Right (word right)
CtrlDelete
Ctrl+Delete (delete word right)
AltBackspace
Alt+Backspace (delete word left)
Trait Implementations§
impl Copy for KeyEvent
impl Eq for KeyEvent
impl StructuralPartialEq for KeyEvent
Auto Trait Implementations§
impl Freeze for KeyEvent
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnwindSafe for KeyEvent
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