Trait GetElement

Source
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§