pub struct FingerId(/* private fields */);Expand description
Identifier of a finger in a touch event.
Whenever a touch event is received it contains a FingerId which uniquely identifies the finger
used for the current interaction.
Implementations§
Source§impl FingerId
impl FingerId
Sourcepub const fn into_raw(self) -> usize
pub const fn into_raw(self) -> usize
Convert the FingerId into the underlying integer.
This is useful if you need to pass the ID across an FFI boundary, or store it in an atomic.
Sourcepub const fn from_raw(id: usize) -> Self
pub const fn from_raw(id: usize) -> Self
Construct a FingerId from the underlying integer.
This should only be called with integers returned from FingerId::into_raw.
Trait Implementations§
impl Copy for FingerId
impl Eq for FingerId
Source§impl Ord for FingerId
impl Ord for FingerId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for FingerId
impl PartialOrd for FingerId
impl StructuralPartialEq for FingerId
Auto Trait Implementations§
impl Freeze for FingerId
impl RefUnwindSafe for FingerId
impl Send for FingerId
impl Sync for FingerId
impl Unpin for FingerId
impl UnsafeUnpin for FingerId
impl UnwindSafe for FingerId
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