#[repr(transparent)]pub struct Document { /* private fields */ }
Expand description
The Document
class.
This API requires the following crate features to be activated: Document
Implementations
Getter for the documentURI
field of this object.
This API requires the following crate features to be activated: Document
Getter for the compatMode
field of this object.
This API requires the following crate features to be activated: Document
Getter for the characterSet
field of this object.
This API requires the following crate features to be activated: Document
Getter for the charset
field of this object.
This API requires the following crate features to be activated: Document
Getter for the inputEncoding
field of this object.
This API requires the following crate features to be activated: Document
Getter for the contentType
field of this object.
This API requires the following crate features to be activated: Document
Getter for the documentElement
field of this object.
This API requires the following crate features to be activated: Document
, Element
Getter for the referrer
field of this object.
This API requires the following crate features to be activated: Document
Getter for the lastModified
field of this object.
This API requires the following crate features to be activated: Document
Getter for the readyState
field of this object.
This API requires the following crate features to be activated: Document
Getter for the title
field of this object.
This API requires the following crate features to be activated: Document
Setter for the title
field of this object.
This API requires the following crate features to be activated: Document
Getter for the dir
field of this object.
This API requires the following crate features to be activated: Document
Setter for the dir
field of this object.
This API requires the following crate features to be activated: Document
Getter for the defaultView
field of this object.
This API requires the following crate features to be activated: Document
, Window
Getter for the onreadystatechange
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onreadystatechange
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onbeforescriptexecute
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onbeforescriptexecute
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onafterscriptexecute
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onafterscriptexecute
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onselectionchange
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onselectionchange
field of this object.
This API requires the following crate features to be activated: Document
Getter for the currentScript
field of this object.
This API requires the following crate features to be activated: Document
, Element
Getter for the fullscreen
field of this object.
This API requires the following crate features to be activated: Document
Getter for the fullscreenEnabled
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onfullscreenchange
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onfullscreenchange
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onfullscreenerror
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onfullscreenerror
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerlockchange
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerlockchange
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerlockerror
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerlockerror
field of this object.
This API requires the following crate features to be activated: Document
Getter for the hidden
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onvisibilitychange
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onvisibilitychange
field of this object.
This API requires the following crate features to be activated: Document
Getter for the selectedStyleSheetSet
field of this object.
This API requires the following crate features to be activated: Document
Setter for the selectedStyleSheetSet
field of this object.
This API requires the following crate features to be activated: Document
Getter for the lastStyleSheetSet
field of this object.
This API requires the following crate features to be activated: Document
Getter for the preferredStyleSheetSet
field of this object.
This API requires the following crate features to be activated: Document
Getter for the scrollingElement
field of this object.
This API requires the following crate features to be activated: Document
, Element
Getter for the oncopy
field of this object.
This API requires the following crate features to be activated: Document
Setter for the oncopy
field of this object.
This API requires the following crate features to be activated: Document
Getter for the oncut
field of this object.
This API requires the following crate features to be activated: Document
Setter for the oncut
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpaste
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpaste
field of this object.
This API requires the following crate features to be activated: Document
Getter for the activeElement
field of this object.
This API requires the following crate features to be activated: Document
, Element
Getter for the pointerLockElement
field of this object.
This API requires the following crate features to be activated: Document
, Element
Getter for the fullscreenElement
field of this object.
This API requires the following crate features to be activated: Document
, Element
Getter for the onabort
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onabort
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onblur
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onblur
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onfocus
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onfocus
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onauxclick
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onauxclick
field of this object.
This API requires the following crate features to be activated: Document
Getter for the oncanplay
field of this object.
This API requires the following crate features to be activated: Document
Setter for the oncanplay
field of this object.
This API requires the following crate features to be activated: Document
Getter for the oncanplaythrough
field of this object.
This API requires the following crate features to be activated: Document
Setter for the oncanplaythrough
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onchange
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onchange
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onclick
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onclick
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onclose
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onclose
field of this object.
This API requires the following crate features to be activated: Document
Getter for the oncontextmenu
field of this object.
This API requires the following crate features to be activated: Document
Setter for the oncontextmenu
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondblclick
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondblclick
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondrag
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondrag
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondragend
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondragend
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondragenter
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondragenter
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondragexit
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondragexit
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondragleave
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondragleave
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondragover
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondragover
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondragstart
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondragstart
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondrop
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondrop
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondurationchange
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondurationchange
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onemptied
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onemptied
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onended
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onended
field of this object.
This API requires the following crate features to be activated: Document
Getter for the oninput
field of this object.
This API requires the following crate features to be activated: Document
Setter for the oninput
field of this object.
This API requires the following crate features to be activated: Document
Getter for the oninvalid
field of this object.
This API requires the following crate features to be activated: Document
Setter for the oninvalid
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onkeydown
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onkeydown
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onkeypress
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onkeypress
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onkeyup
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onkeyup
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onload
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onload
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onloadeddata
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onloadeddata
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onloadedmetadata
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onloadedmetadata
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onloadend
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onloadend
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onloadstart
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onloadstart
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onmousedown
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onmousedown
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onmouseenter
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onmouseenter
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onmouseleave
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onmouseleave
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onmousemove
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onmousemove
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onmouseout
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onmouseout
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onmouseover
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onmouseover
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onmouseup
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onmouseup
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onwheel
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onwheel
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpause
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpause
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onplay
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onplay
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onplaying
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onplaying
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onprogress
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onprogress
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onratechange
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onratechange
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onreset
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onreset
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onresize
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onresize
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onscroll
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onscroll
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onseeked
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onseeked
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onseeking
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onseeking
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onselect
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onselect
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onshow
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onshow
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onstalled
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onstalled
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onsubmit
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onsubmit
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onsuspend
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onsuspend
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontimeupdate
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontimeupdate
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onvolumechange
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onvolumechange
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onwaiting
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onwaiting
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onselectstart
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onselectstart
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontoggle
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontoggle
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointercancel
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointercancel
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerdown
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerdown
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerup
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerup
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointermove
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointermove
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerout
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerout
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerover
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerover
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerenter
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerenter
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerleave
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerleave
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ongotpointercapture
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ongotpointercapture
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onlostpointercapture
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onlostpointercapture
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onanimationcancel
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onanimationcancel
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onanimationend
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onanimationend
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onanimationiteration
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onanimationiteration
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onanimationstart
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onanimationstart
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontransitioncancel
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontransitioncancel
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontransitionend
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontransitionend
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontransitionrun
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontransitionrun
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontransitionstart
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontransitionstart
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onwebkitanimationend
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onwebkitanimationend
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onwebkitanimationiteration
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onwebkitanimationiteration
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onwebkitanimationstart
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onwebkitanimationstart
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onwebkittransitionend
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onwebkittransitionend
field of this object.
This API requires the following crate features to be activated: Document
Getter for the onerror
field of this object.
This API requires the following crate features to be activated: Document
Setter for the onerror
field of this object.
This API requires the following crate features to be activated: Document
Getter for the firstElementChild
field of this object.
This API requires the following crate features to be activated: Document
, Element
Getter for the lastElementChild
field of this object.
This API requires the following crate features to be activated: Document
, Element
Getter for the childElementCount
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontouchstart
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontouchstart
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontouchend
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontouchend
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontouchmove
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontouchmove
field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontouchcancel
field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontouchcancel
field of this object.
This API requires the following crate features to be activated: Document
The adoptNode()
method.
This API requires the following crate features to be activated: Document
The createElement()
method.
This API requires the following crate features to be activated: Document
, Element
The createElement()
method.
This API requires the following crate features to be activated: Document
, Element
The createElementNS()
method.
This API requires the following crate features to be activated: Document
, Element
The createElementNS()
method.
This API requires the following crate features to be activated: Document
, Element
The enableStyleSheetsForSet()
method.
This API requires the following crate features to be activated: Document
The exitFullscreen()
method.
This API requires the following crate features to be activated: Document
The exitPointerLock()
method.
This API requires the following crate features to be activated: Document
The getAnimations()
method.
This API requires the following crate features to be activated: Document
The getElementById()
method.
This API requires the following crate features to be activated: Document
, Element
The importNode()
method.
This API requires the following crate features to be activated: Document
The importNode()
method.
This API requires the following crate features to be activated: Document
The querySelector()
method.
This API requires the following crate features to be activated: Document
, Element
The releaseCapture()
method.
This API requires the following crate features to be activated: Document
The elementFromPoint()
method.
This API requires the following crate features to be activated: Document
, Element
The elementsFromPoint()
method.
This API requires the following crate features to be activated: Document
The getBoxQuads()
method.
This API requires the following crate features to be activated: Document
The append()
method.
This API requires the following crate features to be activated: Document
The append()
method.
This API requires the following crate features to be activated: Document
The append()
method.
This API requires the following crate features to be activated: Document
The append()
method.
This API requires the following crate features to be activated: Document
The append()
method.
This API requires the following crate features to be activated: Document
The append()
method.
This API requires the following crate features to be activated: Document
The append()
method.
This API requires the following crate features to be activated: Document
The append()
method.
This API requires the following crate features to be activated: Document
The append()
method.
This API requires the following crate features to be activated: Document
The append()
method.
This API requires the following crate features to be activated: Document
The append()
method.
This API requires the following crate features to be activated: Document
The append()
method.
This API requires the following crate features to be activated: Document
The prepend()
method.
This API requires the following crate features to be activated: Document
The prepend()
method.
This API requires the following crate features to be activated: Document
The prepend()
method.
This API requires the following crate features to be activated: Document
The prepend()
method.
This API requires the following crate features to be activated: Document
The prepend()
method.
This API requires the following crate features to be activated: Document
The prepend()
method.
This API requires the following crate features to be activated: Document
The prepend()
method.
This API requires the following crate features to be activated: Document
The prepend()
method.
This API requires the following crate features to be activated: Document
The prepend()
method.
This API requires the following crate features to be activated: Document
The prepend()
method.
This API requires the following crate features to be activated: Document
The prepend()
method.
This API requires the following crate features to be activated: Document
The prepend()
method.
This API requires the following crate features to be activated: Document
The createNSResolver()
method.
This API requires the following crate features to be activated: Document
Methods from Deref<Target = Node>
Getter for the nodeType
field of this object.
This API requires the following crate features to be activated: Node
Getter for the nodeName
field of this object.
This API requires the following crate features to be activated: Node
Getter for the isConnected
field of this object.
This API requires the following crate features to be activated: Node
Getter for the ownerDocument
field of this object.
This API requires the following crate features to be activated: Document
, Node
Getter for the parentNode
field of this object.
This API requires the following crate features to be activated: Node
Getter for the parentElement
field of this object.
This API requires the following crate features to be activated: Element
, Node
Getter for the firstChild
field of this object.
This API requires the following crate features to be activated: Node
Getter for the lastChild
field of this object.
This API requires the following crate features to be activated: Node
Getter for the previousSibling
field of this object.
This API requires the following crate features to be activated: Node
Getter for the nextSibling
field of this object.
This API requires the following crate features to be activated: Node
Getter for the nodeValue
field of this object.
This API requires the following crate features to be activated: Node
Setter for the nodeValue
field of this object.
This API requires the following crate features to be activated: Node
Getter for the textContent
field of this object.
This API requires the following crate features to be activated: Node
Setter for the textContent
field of this object.
This API requires the following crate features to be activated: Node
The appendChild()
method.
This API requires the following crate features to be activated: Node
The cloneNode()
method.
This API requires the following crate features to be activated: Node
The cloneNode()
method.
This API requires the following crate features to be activated: Node
The compareDocumentPosition()
method.
This API requires the following crate features to be activated: Node
The getRootNode()
method.
This API requires the following crate features to be activated: Node
The hasChildNodes()
method.
This API requires the following crate features to be activated: Node
The insertBefore()
method.
This API requires the following crate features to be activated: Node
The isDefaultNamespace()
method.
This API requires the following crate features to be activated: Node
The isEqualNode()
method.
This API requires the following crate features to be activated: Node
The isSameNode()
method.
This API requires the following crate features to be activated: Node
The lookupNamespaceURI()
method.
This API requires the following crate features to be activated: Node
The lookupPrefix()
method.
This API requires the following crate features to be activated: Node
The normalize()
method.
This API requires the following crate features to be activated: Node
The removeChild()
method.
This API requires the following crate features to be activated: Node
The replaceChild()
method.
This API requires the following crate features to be activated: Node
Methods from Deref<Target = EventTarget>
The addEventListener()
method.
This API requires the following crate features to be activated: EventTarget
The addEventListener()
method.
This API requires the following crate features to be activated: EventTarget
The addEventListener()
method.
This API requires the following crate features to be activated: EventTarget
The removeEventListener()
method.
This API requires the following crate features to be activated: EventTarget
The removeEventListener()
method.
This API requires the following crate features to be activated: EventTarget
Methods from Deref<Target = Object>
The constructor property returns a reference to the Object
constructor
function that created the instance object.
The hasOwnProperty()
method returns a boolean indicating whether the
object has the specified property as its own property (as opposed to
inheriting it).
The isPrototypeOf()
method checks if an object exists in another
object’s prototype chain.
The propertyIsEnumerable()
method returns a Boolean indicating
whether the specified property is enumerable.
The toLocaleString()
method returns a string representing the object.
This method is meant to be overridden by derived objects for
locale-specific purposes.
The toString()
method returns a string representing the object.
The valueOf()
method returns the primitive value of the
specified object.
Methods from Deref<Target = JsValue>
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
.
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
.
UTF-16 vs UTF-8
JavaScript strings in general are encoded as UTF-16, but Rust strings
are encoded as UTF-8. This can cause the Rust string to look a bit
different than the JS string sometimes. For more details see the
documentation about the str
type which contains a few
caveats about the encodings.
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
.
Tests whether this JS value is undefined
Tests whether the type of this JS value is function
.
Applies the unary typeof
JS operator on a JsValue
.
Applies the binary in
JS operator on the two JsValue
s.
Compare two JsValue
s for equality, using the ==
operator in JS.
Applies the unary ~
JS operator on a JsValue
.
Applies the binary >>>
JS operator on the two JsValue
s.
Applies the binary /
JS operator on two JsValue
s, catching and returning any RangeError
thrown.
Applies the binary **
JS operator on the two JsValue
s.
Applies the binary <
JS operator on the two JsValue
s.
Applies the binary <=
JS operator on the two JsValue
s.
Applies the binary >=
JS operator on the two JsValue
s.
Applies the binary >
JS operator on the two JsValue
s.
Applies the unary +
JS operator on a JsValue
. Can throw.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs a dynamic instanceof
check to see whether the JsValue
provided is an instance of this type. Read more
Performs a zero-cost unchecked conversion from a JsValue
into an
instance of Self
Read more
Performs a zero-cost unchecked conversion from a &JsValue
into an
instance of &Self
. Read more
Test whether this JS value has a type T
. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T
. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T
. Read more
Performs a zero-cost unchecked cast into the specified type. Read more
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
Test whether this JS value is an instance of the type T
. Read more
Performs a dynamic check to see whether the JsValue
provided
is a value of this type. Read more
type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self
are recovered from.
type Anchor = ManuallyDrop<Document>
type Anchor = ManuallyDrop<Document>
The type that holds the reference to 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 more
pub unsafe fn ref_from_abi(
js: <Document as RefFromWasmAbi>::Abi
) -> <Document as RefFromWasmAbi>::Anchor
pub unsafe fn ref_from_abi(
js: <Document as RefFromWasmAbi>::Abi
) -> <Document as RefFromWasmAbi>::Anchor
Recover a Self::Anchor
from Self::Abi
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Document
impl UnwindSafe for Document
Blanket Implementations
Mutably borrows from an owned value. Read more
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more