Struct web_sys::HtmlElement
source · #[repr(transparent)]pub struct HtmlElement { /* private fields */ }
Expand description
The HTMLElement
object
This API requires the following crate features to be activated: HtmlElement
Implementations§
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn dataset(&self) -> DomStringMap
pub fn dataset(&self) -> DomStringMap
The dataset
getter
This API requires the following crate features to be activated: DomStringMap
, HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn inner_text(&self) -> String
pub fn inner_text(&self) -> String
The innerText
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_inner_text(&self, inner_text: &str)
pub fn set_inner_text(&self, inner_text: &str)
The innerText
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
The hidden
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
The hidden
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_tab_index(&self, tab_index: i32)
pub fn set_tab_index(&self, tab_index: i32)
The tabIndex
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn access_key(&self) -> String
pub fn access_key(&self) -> String
The accessKey
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_access_key(&self, access_key: &str)
pub fn set_access_key(&self, access_key: &str)
The accessKey
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn access_key_label(&self) -> String
pub fn access_key_label(&self) -> String
The accessKeyLabel
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_draggable(&self, draggable: bool)
pub fn set_draggable(&self, draggable: bool)
The draggable
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn content_editable(&self) -> String
pub fn content_editable(&self) -> String
The contentEditable
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_content_editable(&self, content_editable: &str)
pub fn set_content_editable(&self, content_editable: &str)
The contentEditable
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn is_content_editable(&self) -> bool
pub fn is_content_editable(&self) -> bool
The isContentEditable
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn spellcheck(&self) -> bool
pub fn spellcheck(&self) -> bool
The spellcheck
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_spellcheck(&self, spellcheck: bool)
pub fn set_spellcheck(&self, spellcheck: bool)
The spellcheck
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn style(&self) -> CssStyleDeclaration
pub fn style(&self) -> CssStyleDeclaration
The style
getter
This API requires the following crate features to be activated: CssStyleDeclaration
, HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn offset_parent(&self) -> Option<Element>
pub fn offset_parent(&self) -> Option<Element>
The offsetParent
getter
This API requires the following crate features to be activated: Element
, HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn offset_top(&self) -> i32
pub fn offset_top(&self) -> i32
The offsetTop
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn offset_left(&self) -> i32
pub fn offset_left(&self) -> i32
The offsetLeft
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn offset_width(&self) -> i32
pub fn offset_width(&self) -> i32
The offsetWidth
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn offset_height(&self) -> i32
pub fn offset_height(&self) -> i32
The offsetHeight
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_oncopy(&self, oncopy: Option<&Function>)
pub fn set_oncopy(&self, oncopy: Option<&Function>)
The oncopy
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onpaste(&self, onpaste: Option<&Function>)
pub fn set_onpaste(&self, onpaste: Option<&Function>)
The onpaste
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onabort(&self, onabort: Option<&Function>)
pub fn set_onabort(&self, onabort: Option<&Function>)
The onabort
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onblur(&self, onblur: Option<&Function>)
pub fn set_onblur(&self, onblur: Option<&Function>)
The onblur
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onfocus(&self, onfocus: Option<&Function>)
pub fn set_onfocus(&self, onfocus: Option<&Function>)
The onfocus
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onauxclick(&self) -> Option<Function>
pub fn onauxclick(&self) -> Option<Function>
The onauxclick
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onauxclick(&self, onauxclick: Option<&Function>)
pub fn set_onauxclick(&self, onauxclick: Option<&Function>)
The onauxclick
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_oncanplay(&self, oncanplay: Option<&Function>)
pub fn set_oncanplay(&self, oncanplay: Option<&Function>)
The oncanplay
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn oncanplaythrough(&self) -> Option<Function>
pub fn oncanplaythrough(&self) -> Option<Function>
The oncanplaythrough
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_oncanplaythrough(&self, oncanplaythrough: Option<&Function>)
pub fn set_oncanplaythrough(&self, oncanplaythrough: Option<&Function>)
The oncanplaythrough
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onchange(&self, onchange: Option<&Function>)
pub fn set_onchange(&self, onchange: Option<&Function>)
The onchange
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onclick(&self, onclick: Option<&Function>)
pub fn set_onclick(&self, onclick: Option<&Function>)
The onclick
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onclose(&self, onclose: Option<&Function>)
pub fn set_onclose(&self, onclose: Option<&Function>)
The onclose
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
The oncontextmenu
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
The oncontextmenu
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ondblclick(&self) -> Option<Function>
pub fn ondblclick(&self) -> Option<Function>
The ondblclick
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ondblclick(&self, ondblclick: Option<&Function>)
pub fn set_ondblclick(&self, ondblclick: Option<&Function>)
The ondblclick
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ondrag(&self, ondrag: Option<&Function>)
pub fn set_ondrag(&self, ondrag: Option<&Function>)
The ondrag
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ondragend(&self, ondragend: Option<&Function>)
pub fn set_ondragend(&self, ondragend: Option<&Function>)
The ondragend
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ondragenter(&self) -> Option<Function>
pub fn ondragenter(&self) -> Option<Function>
The ondragenter
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ondragenter(&self, ondragenter: Option<&Function>)
pub fn set_ondragenter(&self, ondragenter: Option<&Function>)
The ondragenter
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ondragexit(&self) -> Option<Function>
pub fn ondragexit(&self) -> Option<Function>
The ondragexit
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ondragexit(&self, ondragexit: Option<&Function>)
pub fn set_ondragexit(&self, ondragexit: Option<&Function>)
The ondragexit
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ondragleave(&self) -> Option<Function>
pub fn ondragleave(&self) -> Option<Function>
The ondragleave
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ondragleave(&self, ondragleave: Option<&Function>)
pub fn set_ondragleave(&self, ondragleave: Option<&Function>)
The ondragleave
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ondragover(&self) -> Option<Function>
pub fn ondragover(&self) -> Option<Function>
The ondragover
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ondragover(&self, ondragover: Option<&Function>)
pub fn set_ondragover(&self, ondragover: Option<&Function>)
The ondragover
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ondragstart(&self) -> Option<Function>
pub fn ondragstart(&self) -> Option<Function>
The ondragstart
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ondragstart(&self, ondragstart: Option<&Function>)
pub fn set_ondragstart(&self, ondragstart: Option<&Function>)
The ondragstart
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ondrop(&self, ondrop: Option<&Function>)
pub fn set_ondrop(&self, ondrop: Option<&Function>)
The ondrop
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ondurationchange(&self) -> Option<Function>
pub fn ondurationchange(&self) -> Option<Function>
The ondurationchange
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ondurationchange(&self, ondurationchange: Option<&Function>)
pub fn set_ondurationchange(&self, ondurationchange: Option<&Function>)
The ondurationchange
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onemptied(&self, onemptied: Option<&Function>)
pub fn set_onemptied(&self, onemptied: Option<&Function>)
The onemptied
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onended(&self, onended: Option<&Function>)
pub fn set_onended(&self, onended: Option<&Function>)
The onended
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_oninput(&self, oninput: Option<&Function>)
pub fn set_oninput(&self, oninput: Option<&Function>)
The oninput
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_oninvalid(&self, oninvalid: Option<&Function>)
pub fn set_oninvalid(&self, oninvalid: Option<&Function>)
The oninvalid
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onkeydown(&self, onkeydown: Option<&Function>)
pub fn set_onkeydown(&self, onkeydown: Option<&Function>)
The onkeydown
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onkeypress(&self) -> Option<Function>
pub fn onkeypress(&self) -> Option<Function>
The onkeypress
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onkeypress(&self, onkeypress: Option<&Function>)
pub fn set_onkeypress(&self, onkeypress: Option<&Function>)
The onkeypress
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onkeyup(&self, onkeyup: Option<&Function>)
pub fn set_onkeyup(&self, onkeyup: Option<&Function>)
The onkeyup
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onload(&self, onload: Option<&Function>)
pub fn set_onload(&self, onload: Option<&Function>)
The onload
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onloadeddata(&self) -> Option<Function>
pub fn onloadeddata(&self) -> Option<Function>
The onloadeddata
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onloadeddata(&self, onloadeddata: Option<&Function>)
pub fn set_onloadeddata(&self, onloadeddata: Option<&Function>)
The onloadeddata
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onloadedmetadata(&self) -> Option<Function>
pub fn onloadedmetadata(&self) -> Option<Function>
The onloadedmetadata
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onloadedmetadata(&self, onloadedmetadata: Option<&Function>)
pub fn set_onloadedmetadata(&self, onloadedmetadata: Option<&Function>)
The onloadedmetadata
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onloadend(&self, onloadend: Option<&Function>)
pub fn set_onloadend(&self, onloadend: Option<&Function>)
The onloadend
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onloadstart(&self) -> Option<Function>
pub fn onloadstart(&self) -> Option<Function>
The onloadstart
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onloadstart(&self, onloadstart: Option<&Function>)
pub fn set_onloadstart(&self, onloadstart: Option<&Function>)
The onloadstart
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onmousedown(&self) -> Option<Function>
pub fn onmousedown(&self) -> Option<Function>
The onmousedown
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onmousedown(&self, onmousedown: Option<&Function>)
pub fn set_onmousedown(&self, onmousedown: Option<&Function>)
The onmousedown
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onmouseenter(&self) -> Option<Function>
pub fn onmouseenter(&self) -> Option<Function>
The onmouseenter
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onmouseenter(&self, onmouseenter: Option<&Function>)
pub fn set_onmouseenter(&self, onmouseenter: Option<&Function>)
The onmouseenter
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onmouseleave(&self) -> Option<Function>
pub fn onmouseleave(&self) -> Option<Function>
The onmouseleave
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onmouseleave(&self, onmouseleave: Option<&Function>)
pub fn set_onmouseleave(&self, onmouseleave: Option<&Function>)
The onmouseleave
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onmousemove(&self) -> Option<Function>
pub fn onmousemove(&self) -> Option<Function>
The onmousemove
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onmousemove(&self, onmousemove: Option<&Function>)
pub fn set_onmousemove(&self, onmousemove: Option<&Function>)
The onmousemove
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onmouseout(&self) -> Option<Function>
pub fn onmouseout(&self) -> Option<Function>
The onmouseout
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onmouseout(&self, onmouseout: Option<&Function>)
pub fn set_onmouseout(&self, onmouseout: Option<&Function>)
The onmouseout
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onmouseover(&self) -> Option<Function>
pub fn onmouseover(&self) -> Option<Function>
The onmouseover
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onmouseover(&self, onmouseover: Option<&Function>)
pub fn set_onmouseover(&self, onmouseover: Option<&Function>)
The onmouseover
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onmouseup(&self, onmouseup: Option<&Function>)
pub fn set_onmouseup(&self, onmouseup: Option<&Function>)
The onmouseup
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onwheel(&self, onwheel: Option<&Function>)
pub fn set_onwheel(&self, onwheel: Option<&Function>)
The onwheel
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onpause(&self, onpause: Option<&Function>)
pub fn set_onpause(&self, onpause: Option<&Function>)
The onpause
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onplay(&self, onplay: Option<&Function>)
pub fn set_onplay(&self, onplay: Option<&Function>)
The onplay
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onplaying(&self, onplaying: Option<&Function>)
pub fn set_onplaying(&self, onplaying: Option<&Function>)
The onplaying
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onprogress(&self) -> Option<Function>
pub fn onprogress(&self) -> Option<Function>
The onprogress
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onprogress(&self, onprogress: Option<&Function>)
pub fn set_onprogress(&self, onprogress: Option<&Function>)
The onprogress
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onratechange(&self) -> Option<Function>
pub fn onratechange(&self) -> Option<Function>
The onratechange
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onratechange(&self, onratechange: Option<&Function>)
pub fn set_onratechange(&self, onratechange: Option<&Function>)
The onratechange
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onreset(&self, onreset: Option<&Function>)
pub fn set_onreset(&self, onreset: Option<&Function>)
The onreset
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onresize(&self, onresize: Option<&Function>)
pub fn set_onresize(&self, onresize: Option<&Function>)
The onresize
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onscroll(&self, onscroll: Option<&Function>)
pub fn set_onscroll(&self, onscroll: Option<&Function>)
The onscroll
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onseeked(&self, onseeked: Option<&Function>)
pub fn set_onseeked(&self, onseeked: Option<&Function>)
The onseeked
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onseeking(&self, onseeking: Option<&Function>)
pub fn set_onseeking(&self, onseeking: Option<&Function>)
The onseeking
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onselect(&self, onselect: Option<&Function>)
pub fn set_onselect(&self, onselect: Option<&Function>)
The onselect
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onshow(&self, onshow: Option<&Function>)
pub fn set_onshow(&self, onshow: Option<&Function>)
The onshow
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onstalled(&self, onstalled: Option<&Function>)
pub fn set_onstalled(&self, onstalled: Option<&Function>)
The onstalled
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onsubmit(&self, onsubmit: Option<&Function>)
pub fn set_onsubmit(&self, onsubmit: Option<&Function>)
The onsubmit
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onsuspend(&self, onsuspend: Option<&Function>)
pub fn set_onsuspend(&self, onsuspend: Option<&Function>)
The onsuspend
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ontimeupdate(&self) -> Option<Function>
pub fn ontimeupdate(&self) -> Option<Function>
The ontimeupdate
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ontimeupdate(&self, ontimeupdate: Option<&Function>)
pub fn set_ontimeupdate(&self, ontimeupdate: Option<&Function>)
The ontimeupdate
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onvolumechange(&self) -> Option<Function>
pub fn onvolumechange(&self) -> Option<Function>
The onvolumechange
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onvolumechange(&self, onvolumechange: Option<&Function>)
pub fn set_onvolumechange(&self, onvolumechange: Option<&Function>)
The onvolumechange
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onwaiting(&self, onwaiting: Option<&Function>)
pub fn set_onwaiting(&self, onwaiting: Option<&Function>)
The onwaiting
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onselectstart(&self) -> Option<Function>
pub fn onselectstart(&self) -> Option<Function>
The onselectstart
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onselectstart(&self, onselectstart: Option<&Function>)
pub fn set_onselectstart(&self, onselectstart: Option<&Function>)
The onselectstart
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ontoggle(&self, ontoggle: Option<&Function>)
pub fn set_ontoggle(&self, ontoggle: Option<&Function>)
The ontoggle
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onpointercancel(&self) -> Option<Function>
pub fn onpointercancel(&self) -> Option<Function>
The onpointercancel
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onpointercancel(&self, onpointercancel: Option<&Function>)
pub fn set_onpointercancel(&self, onpointercancel: Option<&Function>)
The onpointercancel
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onpointerdown(&self) -> Option<Function>
pub fn onpointerdown(&self) -> Option<Function>
The onpointerdown
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onpointerdown(&self, onpointerdown: Option<&Function>)
pub fn set_onpointerdown(&self, onpointerdown: Option<&Function>)
The onpointerdown
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onpointerup(&self) -> Option<Function>
pub fn onpointerup(&self) -> Option<Function>
The onpointerup
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onpointerup(&self, onpointerup: Option<&Function>)
pub fn set_onpointerup(&self, onpointerup: Option<&Function>)
The onpointerup
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onpointermove(&self) -> Option<Function>
pub fn onpointermove(&self) -> Option<Function>
The onpointermove
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onpointermove(&self, onpointermove: Option<&Function>)
pub fn set_onpointermove(&self, onpointermove: Option<&Function>)
The onpointermove
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onpointerout(&self) -> Option<Function>
pub fn onpointerout(&self) -> Option<Function>
The onpointerout
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onpointerout(&self, onpointerout: Option<&Function>)
pub fn set_onpointerout(&self, onpointerout: Option<&Function>)
The onpointerout
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onpointerover(&self) -> Option<Function>
pub fn onpointerover(&self) -> Option<Function>
The onpointerover
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onpointerover(&self, onpointerover: Option<&Function>)
pub fn set_onpointerover(&self, onpointerover: Option<&Function>)
The onpointerover
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onpointerenter(&self) -> Option<Function>
pub fn onpointerenter(&self) -> Option<Function>
The onpointerenter
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onpointerenter(&self, onpointerenter: Option<&Function>)
pub fn set_onpointerenter(&self, onpointerenter: Option<&Function>)
The onpointerenter
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onpointerleave(&self) -> Option<Function>
pub fn onpointerleave(&self) -> Option<Function>
The onpointerleave
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onpointerleave(&self, onpointerleave: Option<&Function>)
pub fn set_onpointerleave(&self, onpointerleave: Option<&Function>)
The onpointerleave
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ongotpointercapture(&self) -> Option<Function>
pub fn ongotpointercapture(&self) -> Option<Function>
The ongotpointercapture
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ongotpointercapture(&self, ongotpointercapture: Option<&Function>)
pub fn set_ongotpointercapture(&self, ongotpointercapture: Option<&Function>)
The ongotpointercapture
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onlostpointercapture(&self) -> Option<Function>
pub fn onlostpointercapture(&self) -> Option<Function>
The onlostpointercapture
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onlostpointercapture(&self, onlostpointercapture: Option<&Function>)
pub fn set_onlostpointercapture(&self, onlostpointercapture: Option<&Function>)
The onlostpointercapture
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onanimationcancel(&self) -> Option<Function>
pub fn onanimationcancel(&self) -> Option<Function>
The onanimationcancel
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onanimationcancel(&self, onanimationcancel: Option<&Function>)
pub fn set_onanimationcancel(&self, onanimationcancel: Option<&Function>)
The onanimationcancel
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onanimationend(&self) -> Option<Function>
pub fn onanimationend(&self) -> Option<Function>
The onanimationend
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onanimationend(&self, onanimationend: Option<&Function>)
pub fn set_onanimationend(&self, onanimationend: Option<&Function>)
The onanimationend
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onanimationiteration(&self) -> Option<Function>
pub fn onanimationiteration(&self) -> Option<Function>
The onanimationiteration
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onanimationiteration(&self, onanimationiteration: Option<&Function>)
pub fn set_onanimationiteration(&self, onanimationiteration: Option<&Function>)
The onanimationiteration
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onanimationstart(&self) -> Option<Function>
pub fn onanimationstart(&self) -> Option<Function>
The onanimationstart
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onanimationstart(&self, onanimationstart: Option<&Function>)
pub fn set_onanimationstart(&self, onanimationstart: Option<&Function>)
The onanimationstart
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ontransitioncancel(&self) -> Option<Function>
pub fn ontransitioncancel(&self) -> Option<Function>
The ontransitioncancel
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ontransitioncancel(&self, ontransitioncancel: Option<&Function>)
pub fn set_ontransitioncancel(&self, ontransitioncancel: Option<&Function>)
The ontransitioncancel
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ontransitionend(&self) -> Option<Function>
pub fn ontransitionend(&self) -> Option<Function>
The ontransitionend
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ontransitionend(&self, ontransitionend: Option<&Function>)
pub fn set_ontransitionend(&self, ontransitionend: Option<&Function>)
The ontransitionend
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ontransitionrun(&self) -> Option<Function>
pub fn ontransitionrun(&self) -> Option<Function>
The ontransitionrun
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ontransitionrun(&self, ontransitionrun: Option<&Function>)
pub fn set_ontransitionrun(&self, ontransitionrun: Option<&Function>)
The ontransitionrun
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ontransitionstart(&self) -> Option<Function>
pub fn ontransitionstart(&self) -> Option<Function>
The ontransitionstart
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ontransitionstart(&self, ontransitionstart: Option<&Function>)
pub fn set_ontransitionstart(&self, ontransitionstart: Option<&Function>)
The ontransitionstart
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onwebkitanimationend(&self) -> Option<Function>
pub fn onwebkitanimationend(&self) -> Option<Function>
The onwebkitanimationend
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onwebkitanimationend(&self, onwebkitanimationend: Option<&Function>)
pub fn set_onwebkitanimationend(&self, onwebkitanimationend: Option<&Function>)
The onwebkitanimationend
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onwebkitanimationiteration(&self) -> Option<Function>
pub fn onwebkitanimationiteration(&self) -> Option<Function>
The onwebkitanimationiteration
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onwebkitanimationiteration(
&self,
onwebkitanimationiteration: Option<&Function>
)
pub fn set_onwebkitanimationiteration(
&self,
onwebkitanimationiteration: Option<&Function>
)
The onwebkitanimationiteration
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onwebkitanimationstart(&self) -> Option<Function>
pub fn onwebkitanimationstart(&self) -> Option<Function>
The onwebkitanimationstart
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onwebkitanimationstart(
&self,
onwebkitanimationstart: Option<&Function>
)
pub fn set_onwebkitanimationstart(
&self,
onwebkitanimationstart: Option<&Function>
)
The onwebkitanimationstart
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn onwebkittransitionend(&self) -> Option<Function>
pub fn onwebkittransitionend(&self) -> Option<Function>
The onwebkittransitionend
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onwebkittransitionend(&self, onwebkittransitionend: Option<&Function>)
pub fn set_onwebkittransitionend(&self, onwebkittransitionend: Option<&Function>)
The onwebkittransitionend
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_onerror(&self, onerror: Option<&Function>)
pub fn set_onerror(&self, onerror: Option<&Function>)
The onerror
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ontouchstart(&self) -> Option<Function>
pub fn ontouchstart(&self) -> Option<Function>
The ontouchstart
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ontouchstart(&self, ontouchstart: Option<&Function>)
pub fn set_ontouchstart(&self, ontouchstart: Option<&Function>)
The ontouchstart
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ontouchend(&self) -> Option<Function>
pub fn ontouchend(&self) -> Option<Function>
The ontouchend
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ontouchend(&self, ontouchend: Option<&Function>)
pub fn set_ontouchend(&self, ontouchend: Option<&Function>)
The ontouchend
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ontouchmove(&self) -> Option<Function>
pub fn ontouchmove(&self) -> Option<Function>
The ontouchmove
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ontouchmove(&self, ontouchmove: Option<&Function>)
pub fn set_ontouchmove(&self, ontouchmove: Option<&Function>)
The ontouchmove
setter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn ontouchcancel(&self) -> Option<Function>
pub fn ontouchcancel(&self) -> Option<Function>
The ontouchcancel
getter
This API requires the following crate features to be activated: HtmlElement
source§impl HtmlElement
impl HtmlElement
sourcepub fn set_ontouchcancel(&self, ontouchcancel: Option<&Function>)
pub fn set_ontouchcancel(&self, ontouchcancel: Option<&Function>)
The ontouchcancel
setter
This API requires the following crate features to be activated: HtmlElement
Methods from Deref<Target = Element>§
sourcepub fn attach_shadow(
&self,
shadow_root_init_dict: &ShadowRootInit
) -> Result<ShadowRoot, JsValue>
pub fn attach_shadow(
&self,
shadow_root_init_dict: &ShadowRootInit
) -> Result<ShadowRoot, JsValue>
The attachShadow()
method
This API requires the following crate features to be activated: Element
, ShadowRoot
, ShadowRootInit
sourcepub fn get_attribute(&self, name: &str) -> Option<String>
pub fn get_attribute(&self, name: &str) -> Option<String>
The getAttribute()
method
This API requires the following crate features to be activated: Element
sourcepub fn get_attribute_node(&self, name: &str) -> Option<Attr>
pub fn get_attribute_node(&self, name: &str) -> Option<Attr>
The getAttributeNode()
method
This API requires the following crate features to be activated: Attr
, Element
sourcepub fn get_bounding_client_rect(&self) -> DomRect
pub fn get_bounding_client_rect(&self) -> DomRect
The getBoundingClientRect()
method
This API requires the following crate features to be activated: DomRect
, Element
sourcepub fn get_client_rects(&self) -> DomRectList
pub fn get_client_rects(&self) -> DomRectList
The getClientRects()
method
This API requires the following crate features to be activated: DomRectList
, Element
sourcepub fn has_attribute(&self, name: &str) -> bool
pub fn has_attribute(&self, name: &str) -> bool
The hasAttribute()
method
This API requires the following crate features to be activated: Element
sourcepub fn has_attributes(&self) -> bool
pub fn has_attributes(&self) -> bool
The hasAttributes()
method
This API requires the following crate features to be activated: Element
sourcepub fn has_pointer_capture(&self, pointer_id: i32) -> bool
pub fn has_pointer_capture(&self, pointer_id: i32) -> bool
The hasPointerCapture()
method
This API requires the following crate features to be activated: Element
sourcepub fn release_capture(&self)
pub fn release_capture(&self)
The releaseCapture()
method
This API requires the following crate features to be activated: Element
sourcepub fn request_fullscreen(&self) -> Result<(), JsValue>
pub fn request_fullscreen(&self) -> Result<(), JsValue>
The requestFullscreen()
method
This API requires the following crate features to be activated: Element
sourcepub fn request_pointer_lock(&self)
pub fn request_pointer_lock(&self)
The requestPointerLock()
method
This API requires the following crate features to be activated: Element
sourcepub fn scroll_with_x_and_y(&self, x: f64, y: f64)
pub fn scroll_with_x_and_y(&self, x: f64, y: f64)
The scroll()
method
This API requires the following crate features to be activated: Element
sourcepub fn scroll_with_scroll_to_options(&self, options: &ScrollToOptions)
pub fn scroll_with_scroll_to_options(&self, options: &ScrollToOptions)
The scroll()
method
This API requires the following crate features to be activated: Element
, ScrollToOptions
sourcepub fn scroll_by_with_x_and_y(&self, x: f64, y: f64)
pub fn scroll_by_with_x_and_y(&self, x: f64, y: f64)
The scrollBy()
method
This API requires the following crate features to be activated: Element
sourcepub fn scroll_by_with_scroll_to_options(&self, options: &ScrollToOptions)
pub fn scroll_by_with_scroll_to_options(&self, options: &ScrollToOptions)
The scrollBy()
method
This API requires the following crate features to be activated: Element
, ScrollToOptions
sourcepub fn scroll_into_view(&self)
pub fn scroll_into_view(&self)
The scrollIntoView()
method
This API requires the following crate features to be activated: Element
sourcepub fn scroll_into_view_with_bool(&self, arg: bool)
pub fn scroll_into_view_with_bool(&self, arg: bool)
The scrollIntoView()
method
This API requires the following crate features to be activated: Element
sourcepub fn scroll_into_view_with_scroll_into_view_options(
&self,
arg: &ScrollIntoViewOptions
)
pub fn scroll_into_view_with_scroll_into_view_options(
&self,
arg: &ScrollIntoViewOptions
)
The scrollIntoView()
method
This API requires the following crate features to be activated: Element
, ScrollIntoViewOptions
sourcepub fn scroll_to_with_x_and_y(&self, x: f64, y: f64)
pub fn scroll_to_with_x_and_y(&self, x: f64, y: f64)
The scrollTo()
method
This API requires the following crate features to be activated: Element
sourcepub fn scroll_to_with_scroll_to_options(&self, options: &ScrollToOptions)
pub fn scroll_to_with_scroll_to_options(&self, options: &ScrollToOptions)
The scrollTo()
method
This API requires the following crate features to be activated: Element
, ScrollToOptions
sourcepub fn set_capture(&self)
pub fn set_capture(&self)
The setCapture()
method
This API requires the following crate features to be activated: Element
sourcepub fn set_capture_with_retarget_to_element(&self, retarget_to_element: bool)
pub fn set_capture_with_retarget_to_element(&self, retarget_to_element: bool)
The setCapture()
method
This API requires the following crate features to be activated: Element
sourcepub fn namespace_uri(&self) -> Option<String>
pub fn namespace_uri(&self) -> Option<String>
The namespaceURI
getter
This API requires the following crate features to be activated: Element
sourcepub fn local_name(&self) -> String
pub fn local_name(&self) -> String
The localName
getter
This API requires the following crate features to be activated: Element
sourcepub fn class_name(&self) -> String
pub fn class_name(&self) -> String
The className
getter
This API requires the following crate features to be activated: Element
sourcepub fn set_class_name(&self, class_name: &str)
pub fn set_class_name(&self, class_name: &str)
The className
setter
This API requires the following crate features to be activated: Element
sourcepub fn class_list(&self) -> DomTokenList
pub fn class_list(&self) -> DomTokenList
The classList
getter
This API requires the following crate features to be activated: DomTokenList
, Element
sourcepub fn attributes(&self) -> NamedNodeMap
pub fn attributes(&self) -> NamedNodeMap
The attributes
getter
This API requires the following crate features to be activated: Element
, NamedNodeMap
sourcepub fn scroll_top(&self) -> i32
pub fn scroll_top(&self) -> i32
The scrollTop
getter
This API requires the following crate features to be activated: Element
sourcepub fn set_scroll_top(&self, scroll_top: i32)
pub fn set_scroll_top(&self, scroll_top: i32)
The scrollTop
setter
This API requires the following crate features to be activated: Element
sourcepub fn scroll_left(&self) -> i32
pub fn scroll_left(&self) -> i32
The scrollLeft
getter
This API requires the following crate features to be activated: Element
sourcepub fn set_scroll_left(&self, scroll_left: i32)
pub fn set_scroll_left(&self, scroll_left: i32)
The scrollLeft
setter
This API requires the following crate features to be activated: Element
sourcepub fn scroll_width(&self) -> i32
pub fn scroll_width(&self) -> i32
The scrollWidth
getter
This API requires the following crate features to be activated: Element
sourcepub fn scroll_height(&self) -> i32
pub fn scroll_height(&self) -> i32
The scrollHeight
getter
This API requires the following crate features to be activated: Element
sourcepub fn client_top(&self) -> i32
pub fn client_top(&self) -> i32
The clientTop
getter
This API requires the following crate features to be activated: Element
sourcepub fn client_left(&self) -> i32
pub fn client_left(&self) -> i32
The clientLeft
getter
This API requires the following crate features to be activated: Element
sourcepub fn client_width(&self) -> i32
pub fn client_width(&self) -> i32
The clientWidth
getter
This API requires the following crate features to be activated: Element
sourcepub fn client_height(&self) -> i32
pub fn client_height(&self) -> i32
The clientHeight
getter
This API requires the following crate features to be activated: Element
sourcepub fn inner_html(&self) -> String
pub fn inner_html(&self) -> String
The innerHTML
getter
This API requires the following crate features to be activated: Element
sourcepub fn set_inner_html(&self, inner_html: &str)
pub fn set_inner_html(&self, inner_html: &str)
The innerHTML
setter
This API requires the following crate features to be activated: Element
sourcepub fn outer_html(&self) -> String
pub fn outer_html(&self) -> String
The outerHTML
getter
This API requires the following crate features to be activated: Element
sourcepub fn set_outer_html(&self, outer_html: &str)
pub fn set_outer_html(&self, outer_html: &str)
The outerHTML
setter
This API requires the following crate features to be activated: Element
sourcepub fn shadow_root(&self) -> Option<ShadowRoot>
pub fn shadow_root(&self) -> Option<ShadowRoot>
The shadowRoot
getter
This API requires the following crate features to be activated: Element
, ShadowRoot
sourcepub fn assigned_slot(&self) -> Option<HtmlSlotElement>
pub fn assigned_slot(&self) -> Option<HtmlSlotElement>
The assignedSlot
getter
This API requires the following crate features to be activated: Element
, HtmlSlotElement
sourcepub fn after_with_node_0(&self) -> Result<(), JsValue>
pub fn after_with_node_0(&self) -> Result<(), JsValue>
The after()
method
This API requires the following crate features to be activated: Element
sourcepub fn after_with_str_0(&self) -> Result<(), JsValue>
pub fn after_with_str_0(&self) -> Result<(), JsValue>
The after()
method
This API requires the following crate features to be activated: Element
sourcepub fn before_with_node_0(&self) -> Result<(), JsValue>
pub fn before_with_node_0(&self) -> Result<(), JsValue>
The before()
method
This API requires the following crate features to be activated: Element
sourcepub fn before_with_str_0(&self) -> Result<(), JsValue>
pub fn before_with_str_0(&self) -> Result<(), JsValue>
The before()
method
This API requires the following crate features to be activated: Element
sourcepub fn replace_with_with_node_0(&self) -> Result<(), JsValue>
pub fn replace_with_with_node_0(&self) -> Result<(), JsValue>
The replaceWith()
method
This API requires the following crate features to be activated: Element
sourcepub fn replace_with_with_str_0(&self) -> Result<(), JsValue>
pub fn replace_with_with_str_0(&self) -> Result<(), JsValue>
The replaceWith()
method
This API requires the following crate features to be activated: Element
sourcepub fn convert_point_from_node_with_text(
&self,
point: &DomPointInit,
from: &Text
) -> Result<DomPoint, JsValue>
pub fn convert_point_from_node_with_text(
&self,
point: &DomPointInit,
from: &Text
) -> Result<DomPoint, JsValue>
The convertPointFromNode()
method
This API requires the following crate features to be activated: DomPoint
, DomPointInit
, Element
, Text
sourcepub fn convert_point_from_node_with_element(
&self,
point: &DomPointInit,
from: &Element
) -> Result<DomPoint, JsValue>
pub fn convert_point_from_node_with_element(
&self,
point: &DomPointInit,
from: &Element
) -> Result<DomPoint, JsValue>
The convertPointFromNode()
method
This API requires the following crate features to be activated: DomPoint
, DomPointInit
, Element
sourcepub fn convert_point_from_node_with_document(
&self,
point: &DomPointInit,
from: &Document
) -> Result<DomPoint, JsValue>
pub fn convert_point_from_node_with_document(
&self,
point: &DomPointInit,
from: &Document
) -> Result<DomPoint, JsValue>
The convertPointFromNode()
method
This API requires the following crate features to be activated: Document
, DomPoint
, DomPointInit
, Element
sourcepub fn convert_point_from_node_with_text_and_options(
&self,
point: &DomPointInit,
from: &Text,
options: &ConvertCoordinateOptions
) -> Result<DomPoint, JsValue>
pub fn convert_point_from_node_with_text_and_options(
&self,
point: &DomPointInit,
from: &Text,
options: &ConvertCoordinateOptions
) -> Result<DomPoint, JsValue>
The convertPointFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, DomPoint
, DomPointInit
, Element
, Text
sourcepub fn convert_point_from_node_with_element_and_options(
&self,
point: &DomPointInit,
from: &Element,
options: &ConvertCoordinateOptions
) -> Result<DomPoint, JsValue>
pub fn convert_point_from_node_with_element_and_options(
&self,
point: &DomPointInit,
from: &Element,
options: &ConvertCoordinateOptions
) -> Result<DomPoint, JsValue>
The convertPointFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, DomPoint
, DomPointInit
, Element
sourcepub fn convert_point_from_node_with_document_and_options(
&self,
point: &DomPointInit,
from: &Document,
options: &ConvertCoordinateOptions
) -> Result<DomPoint, JsValue>
pub fn convert_point_from_node_with_document_and_options(
&self,
point: &DomPointInit,
from: &Document,
options: &ConvertCoordinateOptions
) -> Result<DomPoint, JsValue>
The convertPointFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, Document
, DomPoint
, DomPointInit
, Element
sourcepub fn convert_quad_from_node_with_text_and_options(
&self,
quad: &DomQuad,
from: &Text,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
pub fn convert_quad_from_node_with_text_and_options(
&self,
quad: &DomQuad,
from: &Text,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
The convertQuadFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, DomQuad
, Element
, Text
sourcepub fn convert_quad_from_node_with_element_and_options(
&self,
quad: &DomQuad,
from: &Element,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
pub fn convert_quad_from_node_with_element_and_options(
&self,
quad: &DomQuad,
from: &Element,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
The convertQuadFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, DomQuad
, Element
sourcepub fn convert_quad_from_node_with_document_and_options(
&self,
quad: &DomQuad,
from: &Document,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
pub fn convert_quad_from_node_with_document_and_options(
&self,
quad: &DomQuad,
from: &Document,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
The convertQuadFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, Document
, DomQuad
, Element
sourcepub fn convert_rect_from_node_with_text(
&self,
rect: &DomRectReadOnly,
from: &Text
) -> Result<DomQuad, JsValue>
pub fn convert_rect_from_node_with_text(
&self,
rect: &DomRectReadOnly,
from: &Text
) -> Result<DomQuad, JsValue>
The convertRectFromNode()
method
This API requires the following crate features to be activated: DomQuad
, DomRectReadOnly
, Element
, Text
sourcepub fn convert_rect_from_node_with_element(
&self,
rect: &DomRectReadOnly,
from: &Element
) -> Result<DomQuad, JsValue>
pub fn convert_rect_from_node_with_element(
&self,
rect: &DomRectReadOnly,
from: &Element
) -> Result<DomQuad, JsValue>
The convertRectFromNode()
method
This API requires the following crate features to be activated: DomQuad
, DomRectReadOnly
, Element
sourcepub fn convert_rect_from_node_with_document(
&self,
rect: &DomRectReadOnly,
from: &Document
) -> Result<DomQuad, JsValue>
pub fn convert_rect_from_node_with_document(
&self,
rect: &DomRectReadOnly,
from: &Document
) -> Result<DomQuad, JsValue>
The convertRectFromNode()
method
This API requires the following crate features to be activated: Document
, DomQuad
, DomRectReadOnly
, Element
sourcepub fn convert_rect_from_node_with_text_and_options(
&self,
rect: &DomRectReadOnly,
from: &Text,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
pub fn convert_rect_from_node_with_text_and_options(
&self,
rect: &DomRectReadOnly,
from: &Text,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
The convertRectFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, DomQuad
, DomRectReadOnly
, Element
, Text
sourcepub fn convert_rect_from_node_with_element_and_options(
&self,
rect: &DomRectReadOnly,
from: &Element,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
pub fn convert_rect_from_node_with_element_and_options(
&self,
rect: &DomRectReadOnly,
from: &Element,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
The convertRectFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, DomQuad
, DomRectReadOnly
, Element
sourcepub fn convert_rect_from_node_with_document_and_options(
&self,
rect: &DomRectReadOnly,
from: &Document,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
pub fn convert_rect_from_node_with_document_and_options(
&self,
rect: &DomRectReadOnly,
from: &Document,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
The convertRectFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, Document
, DomQuad
, DomRectReadOnly
, Element
sourcepub fn previous_element_sibling(&self) -> Option<Element>
pub fn previous_element_sibling(&self) -> Option<Element>
The previousElementSibling
getter
This API requires the following crate features to be activated: Element
sourcepub fn next_element_sibling(&self) -> Option<Element>
pub fn next_element_sibling(&self) -> Option<Element>
The nextElementSibling
getter
This API requires the following crate features to be activated: Element
sourcepub fn append_with_node_0(&self) -> Result<(), JsValue>
pub fn append_with_node_0(&self) -> Result<(), JsValue>
The append()
method
This API requires the following crate features to be activated: Element
sourcepub fn append_with_str_0(&self) -> Result<(), JsValue>
pub fn append_with_str_0(&self) -> Result<(), JsValue>
The append()
method
This API requires the following crate features to be activated: Element
sourcepub fn prepend_with_node_0(&self) -> Result<(), JsValue>
pub fn prepend_with_node_0(&self) -> Result<(), JsValue>
The prepend()
method
This API requires the following crate features to be activated: Element
sourcepub fn prepend_with_str_0(&self) -> Result<(), JsValue>
pub fn prepend_with_str_0(&self) -> Result<(), JsValue>
The prepend()
method
This API requires the following crate features to be activated: Element
sourcepub fn children(&self) -> HtmlCollection
pub fn children(&self) -> HtmlCollection
The children
getter
This API requires the following crate features to be activated: Element
, HtmlCollection
sourcepub fn first_element_child(&self) -> Option<Element>
pub fn first_element_child(&self) -> Option<Element>
The firstElementChild
getter
This API requires the following crate features to be activated: Element
sourcepub fn last_element_child(&self) -> Option<Element>
pub fn last_element_child(&self) -> Option<Element>
The lastElementChild
getter
This API requires the following crate features to be activated: Element
sourcepub fn child_element_count(&self) -> u32
pub fn child_element_count(&self) -> u32
The childElementCount
getter
This API requires the following crate features to be activated: Element
Methods from Deref<Target = Node>§
sourcepub fn clone_node(&self) -> Result<Node, JsValue>
pub fn clone_node(&self) -> Result<Node, JsValue>
The cloneNode()
method
This API requires the following crate features to be activated: Node
sourcepub fn compare_document_position(&self, other: &Node) -> u16
pub fn compare_document_position(&self, other: &Node) -> u16
The compareDocumentPosition()
method
This API requires the following crate features to be activated: Node
sourcepub fn get_root_node(&self) -> Node
pub fn get_root_node(&self) -> Node
The getRootNode()
method
This API requires the following crate features to be activated: Node
sourcepub fn get_root_node_with_options(&self, options: &GetRootNodeOptions) -> Node
pub fn get_root_node_with_options(&self, options: &GetRootNodeOptions) -> Node
The getRootNode()
method
This API requires the following crate features to be activated: GetRootNodeOptions
, Node
sourcepub fn has_child_nodes(&self) -> bool
pub fn has_child_nodes(&self) -> bool
The hasChildNodes()
method
This API requires the following crate features to be activated: Node
sourcepub fn is_default_namespace(&self, namespace: Option<&str>) -> bool
pub fn is_default_namespace(&self, namespace: Option<&str>) -> bool
The isDefaultNamespace()
method
This API requires the following crate features to be activated: Node
sourcepub fn is_equal_node(&self, node: Option<&Node>) -> bool
pub fn is_equal_node(&self, node: Option<&Node>) -> bool
The isEqualNode()
method
This API requires the following crate features to be activated: Node
sourcepub fn is_same_node(&self, node: Option<&Node>) -> bool
pub fn is_same_node(&self, node: Option<&Node>) -> bool
The isSameNode()
method
This API requires the following crate features to be activated: Node
sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
The isConnected
getter
This API requires the following crate features to be activated: Node
sourcepub fn owner_document(&self) -> Option<Document>
pub fn owner_document(&self) -> Option<Document>
The ownerDocument
getter
This API requires the following crate features to be activated: Document
, Node
sourcepub fn parent_node(&self) -> Option<Node>
pub fn parent_node(&self) -> Option<Node>
The parentNode
getter
This API requires the following crate features to be activated: Node
sourcepub fn parent_element(&self) -> Option<Element>
pub fn parent_element(&self) -> Option<Element>
The parentElement
getter
This API requires the following crate features to be activated: Element
, Node
sourcepub fn child_nodes(&self) -> NodeList
pub fn child_nodes(&self) -> NodeList
The childNodes
getter
This API requires the following crate features to be activated: Node
, NodeList
sourcepub fn first_child(&self) -> Option<Node>
pub fn first_child(&self) -> Option<Node>
The firstChild
getter
This API requires the following crate features to be activated: Node
sourcepub fn last_child(&self) -> Option<Node>
pub fn last_child(&self) -> Option<Node>
The lastChild
getter
This API requires the following crate features to be activated: Node
sourcepub fn previous_sibling(&self) -> Option<Node>
pub fn previous_sibling(&self) -> Option<Node>
The previousSibling
getter
This API requires the following crate features to be activated: Node
sourcepub fn next_sibling(&self) -> Option<Node>
pub fn next_sibling(&self) -> Option<Node>
The nextSibling
getter
This API requires the following crate features to be activated: Node
sourcepub fn node_value(&self) -> Option<String>
pub fn node_value(&self) -> Option<String>
The nodeValue
getter
This API requires the following crate features to be activated: Node
sourcepub fn set_node_value(&self, node_value: Option<&str>)
pub fn set_node_value(&self, node_value: Option<&str>)
The nodeValue
setter
This API requires the following crate features to be activated: Node
sourcepub fn text_content(&self) -> Option<String>
pub fn text_content(&self) -> Option<String>
The textContent
getter
This API requires the following crate features to be activated: Node
sourcepub fn set_text_content(&self, text_content: Option<&str>)
pub fn set_text_content(&self, text_content: Option<&str>)
The textContent
setter
This API requires the following crate features to be activated: Node
pub const ELEMENT_NODE: u16 = 1u16
pub const ATTRIBUTE_NODE: u16 = 2u16
pub const CDATA_SECTION_NODE: u16 = 4u16
pub const ENTITY_REFERENCE_NODE: u16 = 5u16
pub const ENTITY_NODE: u16 = 6u16
pub const PROCESSING_INSTRUCTION_NODE: u16 = 7u16
pub const COMMENT_NODE: u16 = 8u16
pub const DOCUMENT_NODE: u16 = 9u16
pub const DOCUMENT_TYPE_NODE: u16 = 10u16
pub const DOCUMENT_FRAGMENT_NODE: u16 = 11u16
pub const NOTATION_NODE: u16 = 12u16
pub const DOCUMENT_POSITION_DISCONNECTED: u16 = 1u16
pub const DOCUMENT_POSITION_PRECEDING: u16 = 2u16
pub const DOCUMENT_POSITION_FOLLOWING: u16 = 4u16
pub const DOCUMENT_POSITION_CONTAINS: u16 = 8u16
pub const DOCUMENT_POSITION_CONTAINED_BY: u16 = 16u16
pub const DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: u16 = 32u16
Methods from Deref<Target = EventTarget>§
sourcepub fn add_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
The addEventListener()
method
This API requires the following crate features to be activated: EventListener
, EventTarget
sourcepub fn add_event_listener_with_callback_and_add_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback_and_add_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
The addEventListener()
method
This API requires the following crate features to be activated: AddEventListenerOptions
, EventTarget
sourcepub fn add_event_listener_with_event_listener_and_add_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_add_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
The addEventListener()
method
This API requires the following crate features to be activated: AddEventListenerOptions
, EventListener
, EventTarget
sourcepub fn add_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
The addEventListener()
method
This API requires the following crate features to be activated: EventListener
, EventTarget
sourcepub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
The addEventListener()
method
This API requires the following crate features to be activated: AddEventListenerOptions
, EventTarget
sourcepub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
The addEventListener()
method
This API requires the following crate features to be activated: AddEventListenerOptions
, EventListener
, EventTarget
sourcepub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: bool,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: bool,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
The addEventListener()
method
This API requires the following crate features to be activated: EventListener
, EventTarget
sourcepub fn remove_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
The removeEventListener()
method
This API requires the following crate features to be activated: EventListener
, EventTarget
sourcepub fn remove_event_listener_with_callback_and_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &EventListenerOptions
) -> Result<(), JsValue>
pub fn remove_event_listener_with_callback_and_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &EventListenerOptions
) -> Result<(), JsValue>
The removeEventListener()
method
This API requires the following crate features to be activated: EventListenerOptions
, EventTarget
sourcepub fn remove_event_listener_with_event_listener_and_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &EventListenerOptions
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener_and_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &EventListenerOptions
) -> Result<(), JsValue>
The removeEventListener()
method
This API requires the following crate features to be activated: EventListener
, EventListenerOptions
, EventTarget
sourcepub fn remove_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
The removeEventListener()
method
This API requires the following crate features to be activated: EventListener
, EventTarget
Methods from Deref<Target = Object>§
sourcepub fn has_own_property(&self, property: &JsValue) -> bool
pub fn has_own_property(&self, property: &JsValue) -> bool
The hasOwnProperty()
method returns a boolean indicating whether the
object has the specified property as its own property (as opposed to
inheriting it).
sourcepub fn is_prototype_of(&self, value: &JsValue) -> bool
pub fn is_prototype_of(&self, value: &JsValue) -> bool
The isPrototypeOf()
method checks if an object exists in another
object’s prototype chain.
sourcepub fn property_is_enumerable(&self, property: &JsValue) -> bool
pub fn property_is_enumerable(&self, property: &JsValue) -> bool
The propertyIsEnumerable()
method returns a Boolean indicating
whether the specified property is enumerable.
sourcepub fn to_locale_string(&self) -> JsString
pub fn to_locale_string(&self) -> JsString
The toLocaleString()
method returns a string representing the object.
This method is meant to be overridden by derived objects for
locale-specific purposes.
Methods from Deref<Target = JsValue>§
pub const NULL: JsValue = JsValue{ idx: JSIDX_NULL, _marker: marker::PhantomData,}
pub const UNDEFINED: JsValue = JsValue{ idx: JSIDX_UNDEFINED, _marker: marker::PhantomData,}
pub const TRUE: JsValue = JsValue{ idx: JSIDX_TRUE, _marker: marker::PhantomData,}
pub const FALSE: JsValue = JsValue{ idx: JSIDX_FALSE, _marker: marker::PhantomData,}
sourcepub fn as_f64(&self) -> Option<f64>
pub fn as_f64(&self) -> Option<f64>
Returns the f64
value of this JS value if it’s an instance of a
number.
If this JS value is not an instance of a number then this returns
None
.
sourcepub fn as_string(&self) -> Option<String>
pub fn as_string(&self) -> Option<String>
If this JS value is a string value, this function copies the JS string
value into wasm linear memory, encoded as UTF-8, and returns it as a
Rust String
.
To avoid the copying and re-encoding, consider the
JsString::try_from()
function from js-sys
instead.
If this JS value is not an instance of a string or if it’s not valid
utf-8 then this returns None
.
sourcepub fn as_bool(&self) -> Option<bool>
pub fn as_bool(&self) -> Option<bool>
Returns the bool
value of this JS value if it’s an instance of a
boolean.
If this JS value is not an instance of a boolean then this returns
None
.
sourcepub fn is_undefined(&self) -> bool
pub fn is_undefined(&self) -> bool
Tests whether this JS value is undefined
sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Tests whether the type of this JS value is function
.
Trait Implementations§
source§impl AsRef<Element> for HtmlElement
impl AsRef<Element> for HtmlElement
source§impl AsRef<EventTarget> for HtmlElement
impl AsRef<EventTarget> for HtmlElement
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<HtmlElement> for HtmlAnchorElement
impl AsRef<HtmlElement> for HtmlAnchorElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlAreaElement
impl AsRef<HtmlElement> for HtmlAreaElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlAudioElement
impl AsRef<HtmlElement> for HtmlAudioElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlBaseElement
impl AsRef<HtmlElement> for HtmlBaseElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlBodyElement
impl AsRef<HtmlElement> for HtmlBodyElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlBrElement
impl AsRef<HtmlElement> for HtmlBrElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlButtonElement
impl AsRef<HtmlElement> for HtmlButtonElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlCanvasElement
impl AsRef<HtmlElement> for HtmlCanvasElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlDListElement
impl AsRef<HtmlElement> for HtmlDListElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlDataElement
impl AsRef<HtmlElement> for HtmlDataElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlDataListElement
impl AsRef<HtmlElement> for HtmlDataListElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlDetailsElement
impl AsRef<HtmlElement> for HtmlDetailsElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlDialogElement
impl AsRef<HtmlElement> for HtmlDialogElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlDirectoryElement
impl AsRef<HtmlElement> for HtmlDirectoryElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlDivElement
impl AsRef<HtmlElement> for HtmlDivElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlEmbedElement
impl AsRef<HtmlElement> for HtmlEmbedElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlFieldSetElement
impl AsRef<HtmlElement> for HtmlFieldSetElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlFontElement
impl AsRef<HtmlElement> for HtmlFontElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlFormElement
impl AsRef<HtmlElement> for HtmlFormElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlFrameElement
impl AsRef<HtmlElement> for HtmlFrameElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlFrameSetElement
impl AsRef<HtmlElement> for HtmlFrameSetElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlHeadElement
impl AsRef<HtmlElement> for HtmlHeadElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlHeadingElement
impl AsRef<HtmlElement> for HtmlHeadingElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlHrElement
impl AsRef<HtmlElement> for HtmlHrElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlHtmlElement
impl AsRef<HtmlElement> for HtmlHtmlElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlIFrameElement
impl AsRef<HtmlElement> for HtmlIFrameElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlImageElement
impl AsRef<HtmlElement> for HtmlImageElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlInputElement
impl AsRef<HtmlElement> for HtmlInputElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlLabelElement
impl AsRef<HtmlElement> for HtmlLabelElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlLegendElement
impl AsRef<HtmlElement> for HtmlLegendElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlLiElement
impl AsRef<HtmlElement> for HtmlLiElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlLinkElement
impl AsRef<HtmlElement> for HtmlLinkElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlMapElement
impl AsRef<HtmlElement> for HtmlMapElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlMediaElement
impl AsRef<HtmlElement> for HtmlMediaElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlMenuElement
impl AsRef<HtmlElement> for HtmlMenuElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlMenuItemElement
impl AsRef<HtmlElement> for HtmlMenuItemElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlMetaElement
impl AsRef<HtmlElement> for HtmlMetaElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlMeterElement
impl AsRef<HtmlElement> for HtmlMeterElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlModElement
impl AsRef<HtmlElement> for HtmlModElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlOListElement
impl AsRef<HtmlElement> for HtmlOListElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlObjectElement
impl AsRef<HtmlElement> for HtmlObjectElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlOptGroupElement
impl AsRef<HtmlElement> for HtmlOptGroupElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlOptionElement
impl AsRef<HtmlElement> for HtmlOptionElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlOutputElement
impl AsRef<HtmlElement> for HtmlOutputElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlParagraphElement
impl AsRef<HtmlElement> for HtmlParagraphElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlParamElement
impl AsRef<HtmlElement> for HtmlParamElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlPictureElement
impl AsRef<HtmlElement> for HtmlPictureElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlPreElement
impl AsRef<HtmlElement> for HtmlPreElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlProgressElement
impl AsRef<HtmlElement> for HtmlProgressElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlQuoteElement
impl AsRef<HtmlElement> for HtmlQuoteElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlScriptElement
impl AsRef<HtmlElement> for HtmlScriptElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlSelectElement
impl AsRef<HtmlElement> for HtmlSelectElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlSlotElement
impl AsRef<HtmlElement> for HtmlSlotElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlSourceElement
impl AsRef<HtmlElement> for HtmlSourceElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlSpanElement
impl AsRef<HtmlElement> for HtmlSpanElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlStyleElement
impl AsRef<HtmlElement> for HtmlStyleElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlTableCaptionElement
impl AsRef<HtmlElement> for HtmlTableCaptionElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlTableCellElement
impl AsRef<HtmlElement> for HtmlTableCellElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlTableColElement
impl AsRef<HtmlElement> for HtmlTableColElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlTableElement
impl AsRef<HtmlElement> for HtmlTableElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlTableRowElement
impl AsRef<HtmlElement> for HtmlTableRowElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlTableSectionElement
impl AsRef<HtmlElement> for HtmlTableSectionElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlTemplateElement
impl AsRef<HtmlElement> for HtmlTemplateElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlTextAreaElement
impl AsRef<HtmlElement> for HtmlTextAreaElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlTimeElement
impl AsRef<HtmlElement> for HtmlTimeElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlTitleElement
impl AsRef<HtmlElement> for HtmlTitleElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlTrackElement
impl AsRef<HtmlElement> for HtmlTrackElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlUListElement
impl AsRef<HtmlElement> for HtmlUListElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlUnknownElement
impl AsRef<HtmlElement> for HtmlUnknownElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<HtmlElement> for HtmlVideoElement
impl AsRef<HtmlElement> for HtmlVideoElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<JsValue> for HtmlElement
impl AsRef<JsValue> for HtmlElement
source§impl AsRef<Node> for HtmlElement
impl AsRef<Node> for HtmlElement
source§impl AsRef<Object> for HtmlElement
impl AsRef<Object> for HtmlElement
source§impl Clone for HtmlElement
impl Clone for HtmlElement
source§fn clone(&self) -> HtmlElement
fn clone(&self) -> HtmlElement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HtmlElement
impl Debug for HtmlElement
source§impl Deref for HtmlElement
impl Deref for HtmlElement
source§impl From<HtmlAnchorElement> for HtmlElement
impl From<HtmlAnchorElement> for HtmlElement
source§fn from(obj: HtmlAnchorElement) -> HtmlElement
fn from(obj: HtmlAnchorElement) -> HtmlElement
source§impl From<HtmlAreaElement> for HtmlElement
impl From<HtmlAreaElement> for HtmlElement
source§fn from(obj: HtmlAreaElement) -> HtmlElement
fn from(obj: HtmlAreaElement) -> HtmlElement
source§impl From<HtmlAudioElement> for HtmlElement
impl From<HtmlAudioElement> for HtmlElement
source§fn from(obj: HtmlAudioElement) -> HtmlElement
fn from(obj: HtmlAudioElement) -> HtmlElement
source§impl From<HtmlBaseElement> for HtmlElement
impl From<HtmlBaseElement> for HtmlElement
source§fn from(obj: HtmlBaseElement) -> HtmlElement
fn from(obj: HtmlBaseElement) -> HtmlElement
source§impl From<HtmlBodyElement> for HtmlElement
impl From<HtmlBodyElement> for HtmlElement
source§fn from(obj: HtmlBodyElement) -> HtmlElement
fn from(obj: HtmlBodyElement) -> HtmlElement
source§impl From<HtmlBrElement> for HtmlElement
impl From<HtmlBrElement> for HtmlElement
source§fn from(obj: HtmlBrElement) -> HtmlElement
fn from(obj: HtmlBrElement) -> HtmlElement
source§impl From<HtmlButtonElement> for HtmlElement
impl From<HtmlButtonElement> for HtmlElement
source§fn from(obj: HtmlButtonElement) -> HtmlElement
fn from(obj: HtmlButtonElement) -> HtmlElement
source§impl From<HtmlCanvasElement> for HtmlElement
impl From<HtmlCanvasElement> for HtmlElement
source§fn from(obj: HtmlCanvasElement) -> HtmlElement
fn from(obj: HtmlCanvasElement) -> HtmlElement
source§impl From<HtmlDListElement> for HtmlElement
impl From<HtmlDListElement> for HtmlElement
source§fn from(obj: HtmlDListElement) -> HtmlElement
fn from(obj: HtmlDListElement) -> HtmlElement
source§impl From<HtmlDataElement> for HtmlElement
impl From<HtmlDataElement> for HtmlElement
source§fn from(obj: HtmlDataElement) -> HtmlElement
fn from(obj: HtmlDataElement) -> HtmlElement
source§impl From<HtmlDataListElement> for HtmlElement
impl From<HtmlDataListElement> for HtmlElement
source§fn from(obj: HtmlDataListElement) -> HtmlElement
fn from(obj: HtmlDataListElement) -> HtmlElement
source§impl From<HtmlDetailsElement> for HtmlElement
impl From<HtmlDetailsElement> for HtmlElement
source§fn from(obj: HtmlDetailsElement) -> HtmlElement
fn from(obj: HtmlDetailsElement) -> HtmlElement
source§impl From<HtmlDialogElement> for HtmlElement
impl From<HtmlDialogElement> for HtmlElement
source§fn from(obj: HtmlDialogElement) -> HtmlElement
fn from(obj: HtmlDialogElement) -> HtmlElement
source§impl From<HtmlDirectoryElement> for HtmlElement
impl From<HtmlDirectoryElement> for HtmlElement
source§fn from(obj: HtmlDirectoryElement) -> HtmlElement
fn from(obj: HtmlDirectoryElement) -> HtmlElement
source§impl From<HtmlDivElement> for HtmlElement
impl From<HtmlDivElement> for HtmlElement
source§fn from(obj: HtmlDivElement) -> HtmlElement
fn from(obj: HtmlDivElement) -> HtmlElement
source§impl From<HtmlElement> for Element
impl From<HtmlElement> for Element
source§fn from(obj: HtmlElement) -> Element
fn from(obj: HtmlElement) -> Element
source§impl From<HtmlElement> for EventTarget
impl From<HtmlElement> for EventTarget
source§fn from(obj: HtmlElement) -> EventTarget
fn from(obj: HtmlElement) -> EventTarget
source§impl From<HtmlElement> for JsValue
impl From<HtmlElement> for JsValue
source§fn from(obj: HtmlElement) -> JsValue
fn from(obj: HtmlElement) -> JsValue
source§impl From<HtmlElement> for Node
impl From<HtmlElement> for Node
source§fn from(obj: HtmlElement) -> Node
fn from(obj: HtmlElement) -> Node
source§impl From<HtmlElement> for Object
impl From<HtmlElement> for Object
source§fn from(obj: HtmlElement) -> Object
fn from(obj: HtmlElement) -> Object
source§impl From<HtmlEmbedElement> for HtmlElement
impl From<HtmlEmbedElement> for HtmlElement
source§fn from(obj: HtmlEmbedElement) -> HtmlElement
fn from(obj: HtmlEmbedElement) -> HtmlElement
source§impl From<HtmlFieldSetElement> for HtmlElement
impl From<HtmlFieldSetElement> for HtmlElement
source§fn from(obj: HtmlFieldSetElement) -> HtmlElement
fn from(obj: HtmlFieldSetElement) -> HtmlElement
source§impl From<HtmlFontElement> for HtmlElement
impl From<HtmlFontElement> for HtmlElement
source§fn from(obj: HtmlFontElement) -> HtmlElement
fn from(obj: HtmlFontElement) -> HtmlElement
source§impl From<HtmlFormElement> for HtmlElement
impl From<HtmlFormElement> for HtmlElement
source§fn from(obj: HtmlFormElement) -> HtmlElement
fn from(obj: HtmlFormElement) -> HtmlElement
source§impl From<HtmlFrameElement> for HtmlElement
impl From<HtmlFrameElement> for HtmlElement
source§fn from(obj: HtmlFrameElement) -> HtmlElement
fn from(obj: HtmlFrameElement) -> HtmlElement
source§impl From<HtmlFrameSetElement> for HtmlElement
impl From<HtmlFrameSetElement> for HtmlElement
source§fn from(obj: HtmlFrameSetElement) -> HtmlElement
fn from(obj: HtmlFrameSetElement) -> HtmlElement
source§impl From<HtmlHeadElement> for HtmlElement
impl From<HtmlHeadElement> for HtmlElement
source§fn from(obj: HtmlHeadElement) -> HtmlElement
fn from(obj: HtmlHeadElement) -> HtmlElement
source§impl From<HtmlHeadingElement> for HtmlElement
impl From<HtmlHeadingElement> for HtmlElement
source§fn from(obj: HtmlHeadingElement) -> HtmlElement
fn from(obj: HtmlHeadingElement) -> HtmlElement
source§impl From<HtmlHrElement> for HtmlElement
impl From<HtmlHrElement> for HtmlElement
source§fn from(obj: HtmlHrElement) -> HtmlElement
fn from(obj: HtmlHrElement) -> HtmlElement
source§impl From<HtmlHtmlElement> for HtmlElement
impl From<HtmlHtmlElement> for HtmlElement
source§fn from(obj: HtmlHtmlElement) -> HtmlElement
fn from(obj: HtmlHtmlElement) -> HtmlElement
source§impl From<HtmlIFrameElement> for HtmlElement
impl From<HtmlIFrameElement> for HtmlElement
source§fn from(obj: HtmlIFrameElement) -> HtmlElement
fn from(obj: HtmlIFrameElement) -> HtmlElement
source§impl From<HtmlImageElement> for HtmlElement
impl From<HtmlImageElement> for HtmlElement
source§fn from(obj: HtmlImageElement) -> HtmlElement
fn from(obj: HtmlImageElement) -> HtmlElement
source§impl From<HtmlInputElement> for HtmlElement
impl From<HtmlInputElement> for HtmlElement
source§fn from(obj: HtmlInputElement) -> HtmlElement
fn from(obj: HtmlInputElement) -> HtmlElement
source§impl From<HtmlLabelElement> for HtmlElement
impl From<HtmlLabelElement> for HtmlElement
source§fn from(obj: HtmlLabelElement) -> HtmlElement
fn from(obj: HtmlLabelElement) -> HtmlElement
source§impl From<HtmlLegendElement> for HtmlElement
impl From<HtmlLegendElement> for HtmlElement
source§fn from(obj: HtmlLegendElement) -> HtmlElement
fn from(obj: HtmlLegendElement) -> HtmlElement
source§impl From<HtmlLiElement> for HtmlElement
impl From<HtmlLiElement> for HtmlElement
source§fn from(obj: HtmlLiElement) -> HtmlElement
fn from(obj: HtmlLiElement) -> HtmlElement
source§impl From<HtmlLinkElement> for HtmlElement
impl From<HtmlLinkElement> for HtmlElement
source§fn from(obj: HtmlLinkElement) -> HtmlElement
fn from(obj: HtmlLinkElement) -> HtmlElement
source§impl From<HtmlMapElement> for HtmlElement
impl From<HtmlMapElement> for HtmlElement
source§fn from(obj: HtmlMapElement) -> HtmlElement
fn from(obj: HtmlMapElement) -> HtmlElement
source§impl From<HtmlMediaElement> for HtmlElement
impl From<HtmlMediaElement> for HtmlElement
source§fn from(obj: HtmlMediaElement) -> HtmlElement
fn from(obj: HtmlMediaElement) -> HtmlElement
source§impl From<HtmlMenuElement> for HtmlElement
impl From<HtmlMenuElement> for HtmlElement
source§fn from(obj: HtmlMenuElement) -> HtmlElement
fn from(obj: HtmlMenuElement) -> HtmlElement
source§impl From<HtmlMenuItemElement> for HtmlElement
impl From<HtmlMenuItemElement> for HtmlElement
source§fn from(obj: HtmlMenuItemElement) -> HtmlElement
fn from(obj: HtmlMenuItemElement) -> HtmlElement
source§impl From<HtmlMetaElement> for HtmlElement
impl From<HtmlMetaElement> for HtmlElement
source§fn from(obj: HtmlMetaElement) -> HtmlElement
fn from(obj: HtmlMetaElement) -> HtmlElement
source§impl From<HtmlMeterElement> for HtmlElement
impl From<HtmlMeterElement> for HtmlElement
source§fn from(obj: HtmlMeterElement) -> HtmlElement
fn from(obj: HtmlMeterElement) -> HtmlElement
source§impl From<HtmlModElement> for HtmlElement
impl From<HtmlModElement> for HtmlElement
source§fn from(obj: HtmlModElement) -> HtmlElement
fn from(obj: HtmlModElement) -> HtmlElement
source§impl From<HtmlOListElement> for HtmlElement
impl From<HtmlOListElement> for HtmlElement
source§fn from(obj: HtmlOListElement) -> HtmlElement
fn from(obj: HtmlOListElement) -> HtmlElement
source§impl From<HtmlObjectElement> for HtmlElement
impl From<HtmlObjectElement> for HtmlElement
source§fn from(obj: HtmlObjectElement) -> HtmlElement
fn from(obj: HtmlObjectElement) -> HtmlElement
source§impl From<HtmlOptGroupElement> for HtmlElement
impl From<HtmlOptGroupElement> for HtmlElement
source§fn from(obj: HtmlOptGroupElement) -> HtmlElement
fn from(obj: HtmlOptGroupElement) -> HtmlElement
source§impl From<HtmlOptionElement> for HtmlElement
impl From<HtmlOptionElement> for HtmlElement
source§fn from(obj: HtmlOptionElement) -> HtmlElement
fn from(obj: HtmlOptionElement) -> HtmlElement
source§impl From<HtmlOutputElement> for HtmlElement
impl From<HtmlOutputElement> for HtmlElement
source§fn from(obj: HtmlOutputElement) -> HtmlElement
fn from(obj: HtmlOutputElement) -> HtmlElement
source§impl From<HtmlParagraphElement> for HtmlElement
impl From<HtmlParagraphElement> for HtmlElement
source§fn from(obj: HtmlParagraphElement) -> HtmlElement
fn from(obj: HtmlParagraphElement) -> HtmlElement
source§impl From<HtmlParamElement> for HtmlElement
impl From<HtmlParamElement> for HtmlElement
source§fn from(obj: HtmlParamElement) -> HtmlElement
fn from(obj: HtmlParamElement) -> HtmlElement
source§impl From<HtmlPictureElement> for HtmlElement
impl From<HtmlPictureElement> for HtmlElement
source§fn from(obj: HtmlPictureElement) -> HtmlElement
fn from(obj: HtmlPictureElement) -> HtmlElement
source§impl From<HtmlPreElement> for HtmlElement
impl From<HtmlPreElement> for HtmlElement
source§fn from(obj: HtmlPreElement) -> HtmlElement
fn from(obj: HtmlPreElement) -> HtmlElement
source§impl From<HtmlProgressElement> for HtmlElement
impl From<HtmlProgressElement> for HtmlElement
source§fn from(obj: HtmlProgressElement) -> HtmlElement
fn from(obj: HtmlProgressElement) -> HtmlElement
source§impl From<HtmlQuoteElement> for HtmlElement
impl From<HtmlQuoteElement> for HtmlElement
source§fn from(obj: HtmlQuoteElement) -> HtmlElement
fn from(obj: HtmlQuoteElement) -> HtmlElement
source§impl From<HtmlScriptElement> for HtmlElement
impl From<HtmlScriptElement> for HtmlElement
source§fn from(obj: HtmlScriptElement) -> HtmlElement
fn from(obj: HtmlScriptElement) -> HtmlElement
source§impl From<HtmlSelectElement> for HtmlElement
impl From<HtmlSelectElement> for HtmlElement
source§fn from(obj: HtmlSelectElement) -> HtmlElement
fn from(obj: HtmlSelectElement) -> HtmlElement
source§impl From<HtmlSlotElement> for HtmlElement
impl From<HtmlSlotElement> for HtmlElement
source§fn from(obj: HtmlSlotElement) -> HtmlElement
fn from(obj: HtmlSlotElement) -> HtmlElement
source§impl From<HtmlSourceElement> for HtmlElement
impl From<HtmlSourceElement> for HtmlElement
source§fn from(obj: HtmlSourceElement) -> HtmlElement
fn from(obj: HtmlSourceElement) -> HtmlElement
source§impl From<HtmlSpanElement> for HtmlElement
impl From<HtmlSpanElement> for HtmlElement
source§fn from(obj: HtmlSpanElement) -> HtmlElement
fn from(obj: HtmlSpanElement) -> HtmlElement
source§impl From<HtmlStyleElement> for HtmlElement
impl From<HtmlStyleElement> for HtmlElement
source§fn from(obj: HtmlStyleElement) -> HtmlElement
fn from(obj: HtmlStyleElement) -> HtmlElement
source§impl From<HtmlTableCaptionElement> for HtmlElement
impl From<HtmlTableCaptionElement> for HtmlElement
source§fn from(obj: HtmlTableCaptionElement) -> HtmlElement
fn from(obj: HtmlTableCaptionElement) -> HtmlElement
source§impl From<HtmlTableCellElement> for HtmlElement
impl From<HtmlTableCellElement> for HtmlElement
source§fn from(obj: HtmlTableCellElement) -> HtmlElement
fn from(obj: HtmlTableCellElement) -> HtmlElement
source§impl From<HtmlTableColElement> for HtmlElement
impl From<HtmlTableColElement> for HtmlElement
source§fn from(obj: HtmlTableColElement) -> HtmlElement
fn from(obj: HtmlTableColElement) -> HtmlElement
source§impl From<HtmlTableElement> for HtmlElement
impl From<HtmlTableElement> for HtmlElement
source§fn from(obj: HtmlTableElement) -> HtmlElement
fn from(obj: HtmlTableElement) -> HtmlElement
source§impl From<HtmlTableRowElement> for HtmlElement
impl From<HtmlTableRowElement> for HtmlElement
source§fn from(obj: HtmlTableRowElement) -> HtmlElement
fn from(obj: HtmlTableRowElement) -> HtmlElement
source§impl From<HtmlTableSectionElement> for HtmlElement
impl From<HtmlTableSectionElement> for HtmlElement
source§fn from(obj: HtmlTableSectionElement) -> HtmlElement
fn from(obj: HtmlTableSectionElement) -> HtmlElement
source§impl From<HtmlTemplateElement> for HtmlElement
impl From<HtmlTemplateElement> for HtmlElement
source§fn from(obj: HtmlTemplateElement) -> HtmlElement
fn from(obj: HtmlTemplateElement) -> HtmlElement
source§impl From<HtmlTextAreaElement> for HtmlElement
impl From<HtmlTextAreaElement> for HtmlElement
source§fn from(obj: HtmlTextAreaElement) -> HtmlElement
fn from(obj: HtmlTextAreaElement) -> HtmlElement
source§impl From<HtmlTimeElement> for HtmlElement
impl From<HtmlTimeElement> for HtmlElement
source§fn from(obj: HtmlTimeElement) -> HtmlElement
fn from(obj: HtmlTimeElement) -> HtmlElement
source§impl From<HtmlTitleElement> for HtmlElement
impl From<HtmlTitleElement> for HtmlElement
source§fn from(obj: HtmlTitleElement) -> HtmlElement
fn from(obj: HtmlTitleElement) -> HtmlElement
source§impl From<HtmlTrackElement> for HtmlElement
impl From<HtmlTrackElement> for HtmlElement
source§fn from(obj: HtmlTrackElement) -> HtmlElement
fn from(obj: HtmlTrackElement) -> HtmlElement
source§impl From<HtmlUListElement> for HtmlElement
impl From<HtmlUListElement> for HtmlElement
source§fn from(obj: HtmlUListElement) -> HtmlElement
fn from(obj: HtmlUListElement) -> HtmlElement
source§impl From<HtmlUnknownElement> for HtmlElement
impl From<HtmlUnknownElement> for HtmlElement
source§fn from(obj: HtmlUnknownElement) -> HtmlElement
fn from(obj: HtmlUnknownElement) -> HtmlElement
source§impl From<HtmlVideoElement> for HtmlElement
impl From<HtmlVideoElement> for HtmlElement
source§fn from(obj: HtmlVideoElement) -> HtmlElement
fn from(obj: HtmlVideoElement) -> HtmlElement
source§impl From<JsValue> for HtmlElement
impl From<JsValue> for HtmlElement
source§fn from(obj: JsValue) -> HtmlElement
fn from(obj: JsValue) -> HtmlElement
source§impl FromWasmAbi for HtmlElement
impl FromWasmAbi for HtmlElement
source§impl<'a> IntoWasmAbi for &'a HtmlElement
impl<'a> IntoWasmAbi for &'a HtmlElement
source§impl IntoWasmAbi for HtmlElement
impl IntoWasmAbi for HtmlElement
source§impl JsCast for HtmlElement
impl JsCast for HtmlElement
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for HtmlElement
impl OptionFromWasmAbi for HtmlElement
source§impl<'a> OptionIntoWasmAbi for &'a HtmlElement
impl<'a> OptionIntoWasmAbi for &'a HtmlElement
source§impl OptionIntoWasmAbi for HtmlElement
impl OptionIntoWasmAbi for HtmlElement
source§impl RefFromWasmAbi for HtmlElement
impl RefFromWasmAbi for HtmlElement
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<HtmlElement>
type Anchor = ManuallyDrop<HtmlElement>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for HtmlElement
impl !Send for HtmlElement
impl !Sync for HtmlElement
impl Unpin for HtmlElement
impl UnwindSafe for HtmlElement
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more