Skip to main content

OptimisticElement

Trait OptimisticElement 

Source
pub trait OptimisticElement {
    // 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 [web_sys::Element::contains], or return false if this is not an web_sys::Element.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl OptimisticElement for NodeRef

Available on crate feature yew only.
Source§

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

Implementors§