#[non_exhaustive]#[repr(u8)]pub enum PointerType {
Unknown = 0,
Mouse = 1,
Pen = 2,
Touch = 3,
}Expand description
The type of device that has generated a pointer event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown = 0
The type of device could not be determined.
Mouse = 1
A mouse.
Pen = 2
A pen or stylus.
Touch = 3
A touch contact.
Trait Implementations§
Source§impl Clone for PointerType
impl Clone for PointerType
Source§fn clone(&self) -> PointerType
fn clone(&self) -> PointerType
Returns a copy of the value. Read more
1.0.0 · 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 PointerType
impl Debug for PointerType
Source§impl Default for PointerType
impl Default for PointerType
Source§fn default() -> PointerType
fn default() -> PointerType
Returns the “default value” for a type. Read more
Source§impl Hash for PointerType
impl Hash for PointerType
Source§impl Ord for PointerType
impl Ord for PointerType
Source§fn cmp(&self, other: &PointerType) -> Ordering
fn cmp(&self, other: &PointerType) -> Ordering
1.21.0 · 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
Source§impl PartialEq for PointerType
impl PartialEq for PointerType
Source§impl PartialOrd for PointerType
impl PartialOrd for PointerType
impl Copy for PointerType
impl Eq for PointerType
impl StructuralPartialEq for PointerType
Auto Trait Implementations§
impl Freeze for PointerType
impl RefUnwindSafe for PointerType
impl Send for PointerType
impl Sync for PointerType
impl Unpin for PointerType
impl UnwindSafe for PointerType
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