pub enum PointerButton {
Primary,
Secondary,
Middle,
}
Expand description
A mouse button
Variants
Primary
Left mouse button on most mice. The only thing valid for touch input.
Secondary
Right mouse button on most mice.
Middle
Middle mouse button
Trait Implementations
sourceimpl Clone for PointerButton
impl Clone for PointerButton
sourcefn clone(&self) -> PointerButton
fn clone(&self) -> PointerButton
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PointerButton
impl Debug for PointerButton
sourceimpl PartialEq<PointerButton> for PointerButton
impl PartialEq<PointerButton> for PointerButton
sourcefn eq(&self, other: &PointerButton) -> bool
fn eq(&self, other: &PointerButton) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for PointerButton
impl Eq for PointerButton
impl StructuralEq for PointerButton
impl StructuralPartialEq for PointerButton
Auto Trait Implementations
impl RefUnwindSafe for PointerButton
impl Send for PointerButton
impl Sync for PointerButton
impl Unpin for PointerButton
impl UnwindSafe for PointerButton
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more