pub struct DetectedDrag {
pub start_position: LogicalPosition,
pub current_position: LogicalPosition,
pub direct_distance: f32,
pub total_distance: f32,
pub duration_ms: u64,
pub sample_count: usize,
pub session_id: u64,
}Expand description
Result of drag detection analysis
Fields§
§start_position: LogicalPositionPosition where drag started
current_position: LogicalPositionCurrent/end position of drag
direct_distance: f32Direct distance dragged (straight line, pixels)
total_distance: f32Total distance dragged (following path, pixels)
duration_ms: u64Duration of the drag (milliseconds)
sample_count: usizeNumber of position samples recorded
session_id: u64Session ID this drag belongs to
Trait Implementations§
Source§impl Clone for DetectedDrag
impl Clone for DetectedDrag
Source§fn clone(&self) -> DetectedDrag
fn clone(&self) -> DetectedDrag
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 moreSource§impl Debug for DetectedDrag
impl Debug for DetectedDrag
Source§impl PartialEq for DetectedDrag
impl PartialEq for DetectedDrag
Source§fn eq(&self, other: &DetectedDrag) -> bool
fn eq(&self, other: &DetectedDrag) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DetectedDrag
impl StructuralPartialEq for DetectedDrag
Auto Trait Implementations§
impl Freeze for DetectedDrag
impl RefUnwindSafe for DetectedDrag
impl Send for DetectedDrag
impl Sync for DetectedDrag
impl Unpin for DetectedDrag
impl UnsafeUnpin for DetectedDrag
impl UnwindSafe for DetectedDrag
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more