#[repr(u8)]pub enum PointerButton {
Primary = 0,
Secondary = 1,
Tertiary = 2,
Back = 3,
Forward = 4,
Eraser = 5,
Other(u8),
}Variants§
Trait Implementations§
Source§impl Clone for PointerButton
impl Clone for PointerButton
Source§fn clone(&self) -> PointerButton
fn clone(&self) -> PointerButton
Returns a duplicate 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 PointerButton
impl Debug for PointerButton
Source§impl From<MouseButton> for PointerButton
impl From<MouseButton> for PointerButton
Source§fn from(button: MouseButton) -> Self
fn from(button: MouseButton) -> Self
Converts to this type from the input type.
Source§impl From<PointerButton> for MouseButton
impl From<PointerButton> for MouseButton
Source§fn from(button: PointerButton) -> Self
fn from(button: PointerButton) -> Self
Converts to this type from the input type.
Source§impl Hash for PointerButton
impl Hash for PointerButton
Source§impl Ord for PointerButton
impl Ord for PointerButton
Source§fn cmp(&self, other: &PointerButton) -> Ordering
fn cmp(&self, other: &PointerButton) -> 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 PointerButton
impl PartialEq for PointerButton
Source§impl PartialOrd for PointerButton
impl PartialOrd 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 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