wext 0.7.2

web-sys extension traits, convenience functions and types
Documentation
1
2
3
4
5
6
7
8
pub trait HtmlInputExt: AsRef<web_sys::HtmlInputElement> + Clone {
    fn typ(&self, t: impl AsRef<str>) -> Self {
        self.as_ref().set_type(t.as_ref());
        self.clone()
    }
}

impl<T: AsRef<web_sys::HtmlInputElement> + Clone> HtmlInputExt for T {}