pub enum Key {
}Expand description
A keyboard key.
Variants§
Char(char)
A printable character.
Enter
Enter/Return key.
Escape
Escape key.
Backspace
Backspace key.
Delete
Delete key.
Tab
Tab key.
BackTab
Backtab (Shift+Tab).
Up
Arrow keys.
Down
Left
Right
Home
Home key.
End
End key.
PageUp
Page Up key.
PageDown
Page Down key.
Insert
Insert key.
F(u8)
Function keys F1–F12.
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.