pub trait GetElement {
    // Required method
    fn get_element(self) -> Result<Element, String>;
}

Required Methods§

source

fn get_element(self) -> Result<Element, String>

Returns wrapped web_sys::Element or tries to get one from the DOM.

Errors

Returns error if the element cannot be found.

Implementations on Foreign Types§

source§

impl GetElement for &str

source§

impl GetElement for Element

source§

impl GetElement for HtmlElement

Implementors§