Skip to main content

MediaQueryListMethods

pub trait MediaQueryListMethods<D: DomTypes> {
    // Required methods
    fn Media(&self) -> DOMString;
    fn Matches(&self) -> bool;
    fn AddListener(&self, listener: Option<Rc<EventListener<D>>>);
    fn RemoveListener(&self, listener: Option<Rc<EventListener<D>>>);
    fn GetOnchange(&self) -> Option<Rc<EventHandlerNonNull<D>>>;
    fn SetOnchange(&self, value: Option<Rc<EventHandlerNonNull<D>>>);
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§