Skip to main content

ElementTarget

Trait ElementTarget 

Source
pub trait ElementTarget {
    // Required method
    fn resolve(self, scope: &Scope) -> Result<Element, JsValue>;
}
Expand description

An element handle, or a selector resolved relative to a scope.

Required Methods§

Source

fn resolve(self, scope: &Scope) -> Result<Element, JsValue>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ElementTarget for &Element

Source§

impl ElementTarget for &HtmlInputElement

Source§

impl ElementTarget for &String

Source§

fn resolve(self, scope: &Scope) -> Result<Element, JsValue>

Source§

impl ElementTarget for &str

Source§

fn resolve(self, scope: &Scope) -> Result<Element, JsValue>

Implementors§