pub enum Key {
}Expand description
A key, as the keyboard layout names it.
Variants§
Enter
Enter or Return, on the main keys or the keypad.
Escape
Escape.
Tab
Tab, with or without Shift.
Backspace
Backspace.
Delete
Delete.
Left
The left arrow.
Right
The right arrow.
Up
The up arrow.
Down
The down arrow.
Home
Home.
End
End.
PageUp
Page Up.
PageDown
Page Down.
Function(u8)
A function key, from F1.
Character(char)
A key that stands for a character, such as 'a', 'A' with Shift,
or ' ' for the space bar.
Other(u32)
Any other key, by its XKB keysym, such as 0xffe1 for the left
Shift.
Trait Implementations§
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Forget for Key
impl Freeze for Key
impl Move 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