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