#[non_exhaustive]pub struct MouseLeaveEvent {
pub x: f32,
pub y: f32,
pub modifiers: Modifiers,
}Expand description
DOM mouseleave event — fired when the cursor leaves an element.
Does NOT bubble (unlike MouseOutEvent).
Chrome: MouseEvent with type "mouseleave".
Always carries the last known cursor position (like Chrome’s clientX/clientY).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.x: f32Last cursor X position when leaving.
y: f32Last cursor Y position when leaving.
modifiers: ModifiersTrait Implementations§
Source§impl Clone for MouseLeaveEvent
impl Clone for MouseLeaveEvent
Source§fn clone(&self) -> MouseLeaveEvent
fn clone(&self) -> MouseLeaveEvent
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 MouseLeaveEvent
impl Debug for MouseLeaveEvent
Source§impl Event for MouseLeaveEvent
impl Event for MouseLeaveEvent
Auto Trait Implementations§
impl Freeze for MouseLeaveEvent
impl RefUnwindSafe for MouseLeaveEvent
impl Send for MouseLeaveEvent
impl Sync for MouseLeaveEvent
impl Unpin for MouseLeaveEvent
impl UnsafeUnpin for MouseLeaveEvent
impl UnwindSafe for MouseLeaveEvent
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert