#[non_exhaustive]pub enum MouseEventKind {
Press,
Release,
Drag,
Move,
ScrollUp,
ScrollDown,
}Expand description
The kind of mouse event.
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.
Press
A button was pressed.
Release
A button was released.
Drag
The mouse was moved (while a button is held).
Move
The mouse was moved (no button held).
ScrollUp
Scroll up.
ScrollDown
Scroll down.
Trait Implementations§
Source§impl Clone for MouseEventKind
impl Clone for MouseEventKind
Source§fn clone(&self) -> MouseEventKind
fn clone(&self) -> MouseEventKind
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 MouseEventKind
impl Debug for MouseEventKind
Source§impl From<MouseEventKind> for MouseEventKind
impl From<MouseEventKind> for MouseEventKind
Source§fn from(ct: MouseEventKind) -> Self
fn from(ct: MouseEventKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MouseEventKind
impl PartialEq for MouseEventKind
impl Copy for MouseEventKind
impl Eq for MouseEventKind
impl StructuralPartialEq for MouseEventKind
Auto Trait Implementations§
impl Freeze for MouseEventKind
impl RefUnwindSafe for MouseEventKind
impl Send for MouseEventKind
impl Sync for MouseEventKind
impl Unpin for MouseEventKind
impl UnwindSafe for MouseEventKind
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