pub trait DomEventTrait<D: DomTypes> {
// Required methods
fn new_inherited() -> Self;
fn init_event(&self, type_: Atom, bubbles: bool, cancelable: bool);
fn IsTrusted(&self) -> bool;
fn fire(&self, cx: &mut JSContext, target: &D::EventTarget);
}Expand description
Trait for subcrates to use DOM events.
Required Methods§
fn new_inherited() -> Self
fn init_event(&self, type_: Atom, bubbles: bool, cancelable: bool)
fn IsTrusted(&self) -> bool
fn fire(&self, cx: &mut JSContext, target: &D::EventTarget)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.