Trait dioxus_web::WebEventExt
source · pub trait WebEventExt<E> {
// Required method
fn try_as_web_event(&self) -> Option<&E>;
// Provided method
fn as_web_event(&self) -> &E
where E: 'static { ... }
}Expand description
A extension trait for web-sys events that provides a way to get the event as a web-sys event.
Required Methods§
sourcefn try_as_web_event(&self) -> Option<&E>
fn try_as_web_event(&self) -> Option<&E>
Try to downcast this event as a web-sys event.
Provided Methods§
sourcefn as_web_event(&self) -> &Ewhere
E: 'static,
fn as_web_event(&self) -> &Ewhere
E: 'static,
Downcast this event as a web-sys event.