#[non_exhaustive]pub enum Key {
R,
X,
Y,
Z,
Up,
Down,
Left,
Right,
Plus,
Minus,
Escape,
Char(char),
}Expand description
Platform-independent key identifier.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
R
Reset.
X
X axis.
Y
Y axis.
Z
Z axis.
Up
Arrow up.
Down
Arrow down.
Left
Arrow left.
Right
Arrow right.
Plus
Zoom in / increase.
Minus
Zoom out / decrease.
Escape
Cancel / exit.
Char(char)
Any other printable character.
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