pub trait ElementSupport {
    // Required method
    fn contains(&self, target: Option<EventTarget>) -> bool;
}
Expand description

Support working with web_sys::Element

Required Methods§

source

fn contains(&self, target: Option<EventTarget>) -> bool

Call [Element::contains], or return false if this is not an Element.

Implementations on Foreign Types§

source§

impl ElementSupport for NodeRef

source§

fn contains(&self, target: Option<EventTarget>) -> bool

Implementors§