Enum wave::recognizer::Gesture
source · #[non_exhaustive]#[repr(C)]pub enum Gesture {
GestureNone = 0,
GestureStaticHold = 1,
GestureSwipeRight = 2,
GestureSwipeLeft = 3,
GestureSwipeUp = 4,
GestureSwipeDown = 5,
}
Expand description
A hand gesture.
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.
GestureNone = 0
No recognized gesture.
GestureStaticHold = 1
A static hold.
GestureSwipeRight = 2
A right swipe.
GestureSwipeLeft = 3
A left swipe.
GestureSwipeUp = 4
A up swipe.
GestureSwipeDown = 5
A down swipe.
Trait Implementations§
source§impl Ord for Gesture
impl Ord for Gesture
source§impl PartialEq for Gesture
impl PartialEq for Gesture
source§impl PartialOrd for Gesture
impl PartialOrd for Gesture
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Gesture
impl Eq for Gesture
impl StructuralEq for Gesture
impl StructuralPartialEq for Gesture
Auto Trait Implementations§
impl RefUnwindSafe for Gesture
impl Send for Gesture
impl Sync for Gesture
impl Unpin for Gesture
impl UnwindSafe for Gesture
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