pub(crate) trait MediaQueryListMethods<D>where
D: DomTypes,{
// Required methods
fn Media(&self) -> DOMString;
fn Matches(&self) -> bool;
fn AddListener(&self, listener: Option<RootedCallback<EventListener<D>>>);
fn RemoveListener(&self, listener: Option<RootedCallback<EventListener<D>>>);
fn GetOnchange(
&self,
cx: &mut JSContext,
) -> Option<RootedCallback<EventHandlerNonNull<D>>>;
fn SetOnchange(
&self,
cx: &mut JSContext,
value: Option<RootedCallback<EventHandlerNonNull<D>>>,
);
}Required Methods§
fn Media(&self) -> DOMString
fn Matches(&self) -> bool
fn AddListener(&self, listener: Option<RootedCallback<EventListener<D>>>)
fn RemoveListener(&self, listener: Option<RootedCallback<EventListener<D>>>)
fn GetOnchange( &self, cx: &mut JSContext, ) -> Option<RootedCallback<EventHandlerNonNull<D>>>
fn SetOnchange( &self, cx: &mut JSContext, value: Option<RootedCallback<EventHandlerNonNull<D>>>, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".