Enum KeyCode
enum KeyCode
Input key pressed
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
Implementations
impl Clone for KeyCode
fn clone(self: &Self) -> KeyCode
impl Copy for KeyCode
impl Debug for KeyCode
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for KeyCode
impl Freeze for KeyCode
impl Hash for KeyCode
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl PartialEq for KeyCode
fn eq(self: &Self, other: &KeyCode) -> bool
impl RefUnwindSafe for KeyCode
impl Send for KeyCode
impl StructuralPartialEq for KeyCode
impl Sync for KeyCode
impl Unpin for KeyCode
impl UnsafeUnpin for KeyCode
impl UnwindSafe for KeyCode
impl<T> Any for KeyCode
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for KeyCode
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for KeyCode
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for KeyCode
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for KeyCode
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for KeyCode
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for KeyCode
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for KeyCode
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for KeyCode
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>