#[non_exhaustive]#[repr(u8)]pub enum Btn {
Left = 0,
Middle = 1,
Right = 2,
Back = 3,
Next = 4,
Dpi = 5,
Extra = 6,
}Expand description
Input keycode for a button on a mouse.
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.
Left = 0
Left or Primary click
Middle = 1
Middle click or Scroll click
Right = 2
Right Click
Back = 3
Back Button
Next = 4
Next Button
Dpi = 5
DPI Button
Extra = 6
Extra Mouse Button
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Btn
impl RefUnwindSafe for Btn
impl Send for Btn
impl Sync for Btn
impl Unpin for Btn
impl UnwindSafe for Btn
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