pub enum KeyCode {
}Expand description
Key code representation.
Represents the physical/logical key pressed.
Variants§
Char(char)
Regular character
F(u8)
Function key (F1-F12)
Backspace
Backspace
Enter
Enter/Return
Left
Left arrow
Right
Right arrow
Up
Up arrow
Down
Down arrow
Home
Home
End
End
PageUp
Page Up
PageDown
Page Down
Tab
Tab
BackTab
Backab (Shift+Tab)
Delete
Delete
Insert
Insert
Esc
Escape
Null
Null (Ctrl+Space on some terminals)
Implementations§
Trait Implementations§
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 UnsafeUnpin 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