pub enum KeyCode {
}Expand description
Represents a key.
Variants§
Backspace
Backspace key.
Enter
Enter key.
Left
Left arrow key.
Right
Right arrow key.
Up
Up arrow key.
Down
Down arrow key.
Home
Home key.
End
End key.
PageUp
Page up key.
PageDown
Page dow key.
Tab
Tab key.
BackTab
Shift + Tab key.
Delete
Delete key.
Insert
Insert key.
F(u8)
F key.
KeyEvent::F(1) represents F1 key, etc.
Char(char)
A character.
KeyEvent::Char('c') represents c character, etc.
Null
Null.
Esc
Escape key.
Trait Implementations§
Source§impl PartialOrd for KeyCode
impl PartialOrd for KeyCode
impl Copy for KeyCode
impl Eq for KeyCode
impl StructuralPartialEq for KeyCode
Auto Trait Implementations§
impl Freeze for KeyCode
impl RefUnwindSafe for KeyCode
impl Send for KeyCode
impl Sync for KeyCode
impl Unpin for KeyCode
impl UnwindSafe for KeyCode
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