pub enum PointerButton {
Primary,
Secondary,
Auxiliary,
}Expand description
Mouse / stylus button identity.
Variants§
Primary
Primary left click / finger tap.
Secondary
Secondary right click / context button.
Auxiliary
Middle scroll-wheel click.
Trait Implementations§
Source§impl Clone for PointerButton
impl Clone for PointerButton
impl Copy for PointerButton
Source§impl Debug for PointerButton
impl Debug for PointerButton
Source§impl Default for PointerButton
impl Default for PointerButton
impl Eq for PointerButton
Source§impl Hash for PointerButton
impl Hash for PointerButton
Source§impl Ord for PointerButton
impl Ord for PointerButton
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 PointerButton
impl PartialEq for PointerButton
Source§impl PartialOrd for PointerButton
impl PartialOrd for PointerButton
impl StructuralPartialEq for PointerButton
Auto Trait Implementations§
impl Forget for PointerButton
impl Freeze for PointerButton
impl Move for PointerButton
impl RefUnwindSafe for PointerButton
impl Send for PointerButton
impl Sync for PointerButton
impl Unpin for PointerButton
impl UnsafeUnpin for PointerButton
impl UnwindSafe for PointerButton
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