Struct ButtonIndex
pub struct ButtonIndex(/* private fields */);
Expand description
§Fields
Any
- Any of the following (or none):1
- The left mouse button.2
- The right mouse button.3
- The middle mouse button.4
- Scroll wheel. TODO: direction?5
- Scroll wheel. TODO: direction?
Implementations§
§impl ButtonIndex
impl ButtonIndex
pub const ANY: ButtonIndex = _
pub const M1: ButtonIndex = _
pub const M2: ButtonIndex = _
pub const M3: ButtonIndex = _
pub const M4: ButtonIndex = _
pub const M5: ButtonIndex = _
Trait Implementations§
§impl Clone for ButtonIndex
impl Clone for ButtonIndex
§fn clone(&self) -> ButtonIndex
fn clone(&self) -> ButtonIndex
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 more§impl Debug for ButtonIndex
impl Debug for ButtonIndex
§impl Default for ButtonIndex
impl Default for ButtonIndex
§fn default() -> ButtonIndex
fn default() -> ButtonIndex
Returns the “default value” for a type. Read more
§impl From<u8> for ButtonIndex
impl From<u8> for ButtonIndex
§fn from(value: u8) -> ButtonIndex
fn from(value: u8) -> ButtonIndex
Converts to this type from the input type.
§impl Hash for ButtonIndex
impl Hash for ButtonIndex
§impl Ord for ButtonIndex
impl Ord for ButtonIndex
§impl PartialEq for ButtonIndex
impl PartialEq for ButtonIndex
§impl PartialOrd for ButtonIndex
impl PartialOrd for ButtonIndex
impl Copy for ButtonIndex
impl Eq for ButtonIndex
impl StructuralPartialEq for ButtonIndex
Auto Trait Implementations§
impl Freeze for ButtonIndex
impl RefUnwindSafe for ButtonIndex
impl Send for ButtonIndex
impl Sync for ButtonIndex
impl Unpin for ButtonIndex
impl UnwindSafe for ButtonIndex
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)