pub enum Key {
}Expand description
A key, by what it types or does: a character (Char(' ') is the
space bar), or a key that types none. For shortcuts, key bindings and
synthesized input.
Variants§
Char(char)
Enter
Escape
Tab
Backspace
The key that deletes backwards: Delete (⌫) on Apple keyboards.
Delete
The key that deletes forwards: ⌦ on Apple keyboards.
Up
Down
Left
Right
Home
End
PageUp
PageDown
F(u8)
A function key, from F1.
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