pub enum KeyCode {
}Expand description
Which key. A character key is the character it types; the named keys are the WIT’s vocabulary. Escape never arrives: it closes the surface.
Variants§
Char(char)
a, A, 1, ?, é: what the key typed, shift applied.
Enter
Tab
BackTab
Shift+Tab, as terminals report it.
Backspace
Delete
Insert
Space
Left
Right
Up
Down
Home
End
PageUp
PageDown
F(u8)
F(1) to F(12).
Other(String)
A name a newer viewer sends.
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