#[non_exhaustive]pub enum KeyCode {
}Expand description
A key code.
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)
A character key.
Enter
Enter / Return.
Tab
Tab.
Backspace
Backspace.
Delete
Delete.
Escape
Escape.
Up
Arrow up.
Down
Arrow down.
Left
Arrow left.
Right
Arrow right.
Home
Home.
End
End.
PageUp
Page up.
PageDown
Page down.
Insert
Insert.
F(u8)
Function key (F1-F12).
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 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