#[non_exhaustive]pub enum PointerButton {
Primary,
Secondary,
Middle,
Other(u16),
}Expand description
A pointer button.
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.
Primary
The main button: left on a right-handed mouse, or a touch.
Secondary
The context button: right on a right-handed mouse.
Middle
The wheel button.
Other(u16)
Any other button, by the platform’s number.
Trait Implementations§
Source§impl Clone for PointerButton
impl Clone for PointerButton
impl Copy for PointerButton
Source§impl Debug for PointerButton
impl Debug for PointerButton
impl Eq for PointerButton
Source§impl Hash for PointerButton
impl Hash for PointerButton
Source§impl PartialEq for PointerButton
impl PartialEq for PointerButton
impl StructuralPartialEq for PointerButton
Auto Trait Implementations§
impl Freeze 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