Struct web_dom::MouseEventHandler
source · [−]pub struct MouseEventHandler {
pub handler: Option<Box<dyn Sync + FnMut(MouseEvent) + Send + 'static>>,
}
Fields
handler: Option<Box<dyn Sync + FnMut(MouseEvent) + Send + 'static>>
Implementations
sourceimpl MouseEventHandler
impl MouseEventHandler
pub fn new(
f: impl Sync + FnMut(MouseEvent) + 'static + Send
) -> MouseEventHandler
Auto Trait Implementations
impl !RefUnwindSafe for MouseEventHandler
impl Send for MouseEventHandler
impl Sync for MouseEventHandler
impl Unpin for MouseEventHandler
impl !UnwindSafe for MouseEventHandler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more