pub enum Key {
}Expand description
A keyboard key, by what it means rather than where it sits.
Variants§
Char(char)
A printable key, as its lowercase character: Char('a'), Char('.'), Char(' ').
Tab
The Tab key.
Return
The Return (Enter) key.
KpEnter
The Enter key on the numeric keypad.
Escape
The Escape key.
Backspace
The Backspace key.
Delete
The Delete key.
Home
The Home key.
End
The End key.
PageUp
The Page Up key.
PageDown
The Page Down key.
Up
The Up arrow.
Down
The Down arrow.
Left
The Left arrow.
Right
The Right arrow.
F(u8)
A function key, F(1) through F(12).
Other(u32)
A key the backend could not name; the number is the backend’s own code.
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