pub trait FocusEventMethods<D: DomTypes> {
// Required methods
fn GetRelatedTarget(&self) -> Option<DomRoot<D::EventTarget>>;
fn IsTrusted(&self) -> bool;
fn Constructor(
cx: &mut JSContext,
global: &D::Window,
proto: Option<HandleObject<'_>>,
typeArg: DOMString,
focusEventInitDict: &FocusEventInit<D>,
) -> Fallible<DomRoot<D::FocusEvent>>;
}Required Methods§
fn GetRelatedTarget(&self) -> Option<DomRoot<D::EventTarget>>
fn IsTrusted(&self) -> bool
fn Constructor( cx: &mut JSContext, global: &D::Window, proto: Option<HandleObject<'_>>, typeArg: DOMString, focusEventInitDict: &FocusEventInit<D>, ) -> Fallible<DomRoot<D::FocusEvent>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".