pub enum Key {
}
Variants§
Backspace
Backspace.
Enter
Enter.
Tab
Tab.
Left
Left arrow.
Right
Right arrow.
Up
Up arrow.
Down
Down arrow.
Home
Home key.
End
End key.
PageUp
Page Up key.
PageDown
Page Down key.
BackTab
Backward Tab key.
Delete
Delete key.
Insert
Insert key.
F(u8)
Function keys.
Only function keys 1 through 12 are supported.
Char(char)
Normal character.
Num(u8)
Ctrl(char)
Ctrl modified character.
Note that certain keys may not be modifiable with ctrl
, due to limitations of terminals.
Alt(char)
Null
Null byte.
Esc
Esc key.
Trait Implementations§
impl Eq for Key
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 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