pub enum Pattern {
Tap,
Hold,
DoubleTap,
}Expand description
One of the patterns ActionMap::set_emits can make emit an action.
The repeat pattern is not one: it pulses on a schedule while held, which is a rate rather than a gesture, and nothing has asked for it to emit.
Variants§
Tap
The Tap ActionMap::set_tap attaches.
Hold
The Hold ActionMap::set_hold attaches.
DoubleTap
The DoubleTap ActionMap::set_double_tap
attaches.
Implementations§
Trait Implementations§
impl Copy for Pattern
impl Eq for Pattern
impl StructuralPartialEq for Pattern
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnsafeUnpin for Pattern
impl UnwindSafe for Pattern
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