pub enum TouchPhase {
Started,
Moved,
Ended,
Cancelled,
}Expand description
Where a touch contact is in its lifetime.
Variants§
Started
The contact went down.
Moved
The contact moved, or one of its other properties changed.
Ended
The contact lifted normally.
Cancelled
The system took the contact away: a call arrived, a system gesture won it, the finger slid off a bezel. Whatever the contact was doing does not count as having happened.
Trait Implementations§
Source§impl Clone for TouchPhase
impl Clone for TouchPhase
Source§fn clone(&self) -> TouchPhase
fn clone(&self) -> TouchPhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TouchPhase
Source§impl Debug for TouchPhase
impl Debug for TouchPhase
impl Eq for TouchPhase
Source§impl Hash for TouchPhase
impl Hash for TouchPhase
Source§impl PartialEq for TouchPhase
impl PartialEq for TouchPhase
impl StructuralPartialEq for TouchPhase
Auto Trait Implementations§
impl Forget for TouchPhase
impl Freeze for TouchPhase
impl Move 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