pub(crate) trait ToggleEventMethods<D>where
D: DomTypes,{
// Required methods
fn OldState(&self) -> DOMString;
fn NewState(&self) -> DOMString;
fn GetSource(&self) -> Option<Root<Dom<<D as DomTypes>::Element>>>;
fn IsTrusted(&self) -> bool;
fn Constructor(
global: &<D as DomTypes>::Window,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: &ToggleEventInit<D>,
) -> Result<Root<Dom<<D as DomTypes>::ToggleEvent>>, Error>;
}Required Methods§
fn OldState(&self) -> DOMString
fn NewState(&self) -> DOMString
fn GetSource(&self) -> Option<Root<Dom<<D as DomTypes>::Element>>>
fn IsTrusted(&self) -> bool
fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, type_: DOMString, eventInitDict: &ToggleEventInit<D>, ) -> Result<Root<Dom<<D as DomTypes>::ToggleEvent>>, Error>
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.