pub enum Key {
Unknown,
ArrowLeft,
ArrowRight,
ArrowUp,
ArrowDown,
Enter,
Escape,
Char(char),
// some variants omitted
}
Expand description
Key mapping
This is an incomplete mapping of keys that are supported for reading from the keyboard.
Variants
Unknown
ArrowLeft
ArrowRight
ArrowUp
ArrowDown
Enter
Escape
Char(char)
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