#[non_exhaustive]pub enum TouchPhase {
Down,
Up,
Motion,
Frame,
Cancel,
}Expand description
What a touch point is doing.
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.
Down
A finger landed.
Up
A finger lifted.
Motion
A finger moved.
Frame
The end of one batch of simultaneous touch changes.
Cancel
The sequence was abandoned – a palm, or a device going away.
Trait Implementations§
Source§impl Clone for TouchPhase
impl Clone for TouchPhase
impl Copy for TouchPhase
Source§impl Debug for TouchPhase
impl Debug for TouchPhase
impl Eq for TouchPhase
Source§impl PartialEq for TouchPhase
impl PartialEq for TouchPhase
impl StructuralPartialEq for TouchPhase
Auto Trait Implementations§
impl Freeze for TouchPhase
impl RefUnwindSafe for TouchPhase
impl Send for TouchPhase
impl Sync for TouchPhase
impl Unpin for TouchPhase
impl UnsafeUnpin for TouchPhase
impl UnwindSafe for TouchPhase
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