pub enum Key {
Show 14 variants
Backspace,
Char(char),
Delete,
Down,
End,
Esc,
Home,
Insert,
Left,
PageDown,
PageUp,
Return,
Right,
Up,
}
Expand description
An object representing a key on the key board.
Variants
Backspace
The backspace key.
Char(char)
The character representing the key.
Delete
The delete key.
Down
The down arrow key.
End
The end key.
Esc
The Escape key.
Home
The home key.
Insert
The insert key.
Left
The left arrow key.
PageDown
The page down key.
PageUp
The page up key.
Return
The return key.
Right
The right arrow key.
Up
The up arrow key.
Trait Implementations
impl Copy for Key
impl Eq for Key
impl StructuralEq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more