#[repr(u8)]pub enum PointerButton {
None = 0,
Left = 1,
Right = 2,
Middle = 3,
}
Variants§
None = 0
No button but a move
Left = 1
Left mouse Button
Right = 2
Right mouse button
Middle = 3
Wheel mouse button
Trait Implementations§
Source§impl Clone for PointerButton
impl Clone for PointerButton
Source§fn clone(&self) -> PointerButton
fn clone(&self) -> PointerButton
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 PartialEq for PointerButton
impl PartialEq for PointerButton
Source§impl TryFrom<u8> for PointerButton
impl TryFrom<u8> for PointerButton
Source§type Error = TryFromPrimitiveError<PointerButton>
type Error = TryFromPrimitiveError<PointerButton>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PointerButton
impl TryFromPrimitive for PointerButton
impl Copy for PointerButton
impl Eq 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.