pub enum Key {
Show 16 variants
Up,
Down,
Left,
Right,
Home,
End,
PageUp,
PageDown,
Enter,
Tab,
Char(char),
Backspace,
Delete,
Escape,
Interrupt,
DeleteWordBack,
}Variants§
Up
Down
Left
Right
Home
End
PageUp
PageDown
Enter
Tab
Char(char)
Any printable character. Space arrives here as Char(' ').
Backspace
Delete
Escape
Interrupt
Ctrl+C or Ctrl+D — triggers Interrupted error
DeleteWordBack
Ctrl+W — delete word backward
Trait Implementations§
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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