pub enum PointerDevice {
Mouse,
Touch,
Stylus,
}Expand description
Source pointer device class unified across desktop, tablet, mobile, and web.
Variants§
Mouse
Mouse or trackpad cursor.
Touch
Capacitive touch finger contact.
Stylus
Stylus or Apple Pencil contact with pressure/tilt metadata.
Trait Implementations§
Source§impl Clone for PointerDevice
impl Clone for PointerDevice
impl Copy for PointerDevice
Source§impl Debug for PointerDevice
impl Debug for PointerDevice
Source§impl Default for PointerDevice
impl Default for PointerDevice
impl Eq for PointerDevice
Source§impl Hash for PointerDevice
impl Hash for PointerDevice
Source§impl Ord for PointerDevice
impl Ord for PointerDevice
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 PartialEq for PointerDevice
impl PartialEq for PointerDevice
Source§impl PartialOrd for PointerDevice
impl PartialOrd for PointerDevice
impl StructuralPartialEq for PointerDevice
Auto Trait Implementations§
impl Forget for PointerDevice
impl Freeze for PointerDevice
impl Move for PointerDevice
impl RefUnwindSafe for PointerDevice
impl Send for PointerDevice
impl Sync for PointerDevice
impl Unpin for PointerDevice
impl UnsafeUnpin for PointerDevice
impl UnwindSafe for PointerDevice
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