#[non_exhaustive]pub enum KeyCode {
}
Expand description
Input key pressed
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.
UnknownEscSeq
Unsupported escape sequence (on unix platform)
Backspace
⌫ or Ctrl-H
BackTab
⇤ (usually Shift-Tab)
BracketedPasteStart
Paste (on unix platform)
BracketedPasteEnd
Paste (on unix platform)
Char(char)
Single char
Delete
⌦
Down
↓ arrow key
End
⇲
Enter
↵ or Ctrl-M
Esc
Escape or Ctrl-[
F(u8)
Function key
Home
⇱
Insert
Insert key
Left
← arrow key
Null
\0
PageDown
⇟
PageUp
⇞
Right
→ arrow key
Tab
⇥ or Ctrl-I
Up
↑ arrow key
Trait Implementations§
source§impl PartialEq for KeyCode
impl PartialEq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)