#[non_exhaustive]pub enum KeyCode {
Show 27 variants
Char(char),
Enter,
Tab,
BackTab,
Backspace,
Delete,
Escape,
Insert,
Home,
End,
PageUp,
PageDown,
Up,
Down,
Left,
Right,
Function(u8),
Null,
CapsLock,
ScrollLock,
NumLock,
PrintScreen,
Pause,
Menu,
KeypadBegin,
Media(MediaKeyCode),
Modifier(ModifierKeyCode),
}Expand description
A backend-independent terminal key.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Char(char)
Enter
Tab
BackTab
Backspace
Delete
Escape
Insert
Home
End
PageUp
PageDown
Up
Down
Left
Right
Function(u8)
Null
CapsLock
ScrollLock
NumLock
PrintScreen
Pause
Menu
KeypadBegin
Media(MediaKeyCode)
Modifier(ModifierKeyCode)
Trait Implementations§
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 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