Struct web_dom::MouseEventHandler [−][src]
pub struct MouseEventHandler { pub handler: Option<Box<dyn Sync + FnMut(MouseEvent) + Send + 'static>>, }
Fields
handler: Option<Box<dyn Sync + FnMut(MouseEvent) + Send + 'static>>
Implementations
impl MouseEventHandler
[src]
impl MouseEventHandler
[src]pub fn new(
f: impl Sync + FnMut(MouseEvent) + 'static + Send
) -> MouseEventHandler
[src]
f: impl Sync + FnMut(MouseEvent) + 'static + Send
) -> MouseEventHandler