#[non_exhaustive]pub struct GestureObserver {
pub gesture: Gesture,
pub action: BoxHandler<()>,
}Expand description
Observes a gesture and executes an action when the gesture is recognized.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.gesture: GestureThe gesture to observe.
action: BoxHandler<()>The action to execute when the gesture is recognized.
Implementations§
Trait Implementations§
Source§impl Debug for GestureObserver
impl Debug for GestureObserver
impl MetadataKey for GestureObserver
Auto Trait Implementations§
impl Freeze for GestureObserver
impl !RefUnwindSafe for GestureObserver
impl !Send for GestureObserver
impl !Sync for GestureObserver
impl Unpin for GestureObserver
impl !UnwindSafe for GestureObserver
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more