pub enum Key {
}Expand description
Key code
Variants§
Char(char)
Character key
Enter
Enter/Return
Escape
Escape
Tab
Tab
BackTab
Shift+Tab (back tab)
Backspace
Backspace
Delete
Delete
Up
Arrow up
Down
Arrow down
Left
Arrow left
Right
Arrow right
Home
Home
End
End
PageUp
Page up
PageDown
Page down
F(u8)
Function key (F1-F12)
Insert
Insert
Null
Null (no key)
Unknown
Unknown key (not recognized)
Implementations§
Trait Implementations§
impl Copy for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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