#[non_exhaustive]pub enum Press {
Keys(Chord),
Pad(ButtonChord),
}Expand description
What presses an action: a key chord, or a button (or two together).
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.
Trait Implementations§
impl Copy for Press
impl Eq for Press
impl StructuralPartialEq for Press
Auto Trait Implementations§
impl Freeze for Press
impl RefUnwindSafe for Press
impl Send for Press
impl Sync for Press
impl Unpin for Press
impl UnsafeUnpin for Press
impl UnwindSafe for Press
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