Enum rich_sdl2_rust::event::mouse::MouseEvent
source · #[non_exhaustive]pub enum MouseEvent {
Motion(MouseMotionEvent),
Button(MouseButtonEvent),
Wheel(MouseWheelEvent),
}
Expand description
An event related on the 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.
Motion(MouseMotionEvent)
A motion event MouseMotionEvent
.
Button(MouseButtonEvent)
A button event MouseButtonEvent
.
Wheel(MouseWheelEvent)
A wheel event MouseWheelEvent
.
Trait Implementations§
source§impl Clone for MouseEvent
impl Clone for MouseEvent
source§fn clone(&self) -> MouseEvent
fn clone(&self) -> MouseEvent
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 Debug for MouseEvent
impl Debug for MouseEvent
source§impl PartialEq for MouseEvent
impl PartialEq for MouseEvent
source§fn eq(&self, other: &MouseEvent) -> bool
fn eq(&self, other: &MouseEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MouseEvent
impl StructuralPartialEq for MouseEvent
Auto Trait Implementations§
impl RefUnwindSafe for MouseEvent
impl Send for MouseEvent
impl Sync for MouseEvent
impl Unpin for MouseEvent
impl UnwindSafe for MouseEvent
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