pub enum Key {
Show 16 variants
Tab,
BackTab,
Enter,
Escape,
Space,
Left,
Right,
Up,
Down,
Home,
End,
PageUp,
PageDown,
Backspace,
Delete,
Character(char),
}Expand description
A key the interface reacts to.
Variants§
Tab
Tab: the next control.
BackTab
Shift and Tab: the previous control.
Enter
Enter.
Escape
Escape.
Space
The space bar.
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.
Backspace
Backspace.
Delete
Delete.
Character(char)
A character key.
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