pub struct PointerId(pub u64);Expand description
Identifies one pointer of a gesture, such as one finger, as Compose’s PointerId. The
primary pointer is PointerId::PRIMARY.
Tuple Fields§
§0: u64Implementations§
Source§impl PointerId
impl PointerId
Sourcepub const fn is_primary(self) -> bool
pub const fn is_primary(self) -> bool
Whether this is PointerId::PRIMARY.
Trait Implementations§
impl Copy for PointerId
impl Eq for PointerId
Source§impl Ord for PointerId
impl Ord for PointerId
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 PointerId
impl PartialOrd for PointerId
impl StructuralPartialEq for PointerId
Auto Trait Implementations§
impl Forget for PointerId
impl Freeze for PointerId
impl RefUnwindSafe for PointerId
impl Send for PointerId
impl Sync for PointerId
impl Unpin for PointerId
impl UnsafeUnpin for PointerId
impl UnwindSafe for PointerId
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