#[repr(transparent)]pub struct Window { /* private fields */ }
Expand description
The Window
class.
This API requires the following crate features to be activated: Window
Implementations
Getter for the window
field of this object.
This API requires the following crate features to be activated: Window
Getter for the self
field of this object.
This API requires the following crate features to be activated: Window
Getter for the document
field of this object.
This API requires the following crate features to be activated: Document
, Window
Setter for the status
field of this object.
This API requires the following crate features to be activated: Window
Getter for the event
field of this object.
This API requires the following crate features to be activated: Window
Getter for the length
field of this object.
This API requires the following crate features to be activated: Window
Setter for the opener
field of this object.
This API requires the following crate features to be activated: Window
Getter for the frameElement
field of this object.
This API requires the following crate features to be activated: Element
, Window
Getter for the onappinstalled
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onappinstalled
field of this object.
This API requires the following crate features to be activated: Window
Getter for the innerWidth
field of this object.
This API requires the following crate features to be activated: Window
Setter for the innerWidth
field of this object.
This API requires the following crate features to be activated: Window
Getter for the innerHeight
field of this object.
This API requires the following crate features to be activated: Window
Setter for the innerHeight
field of this object.
This API requires the following crate features to be activated: Window
Getter for the pageXOffset
field of this object.
This API requires the following crate features to be activated: Window
Getter for the pageYOffset
field of this object.
This API requires the following crate features to be activated: Window
Setter for the screenX
field of this object.
This API requires the following crate features to be activated: Window
Setter for the screenY
field of this object.
This API requires the following crate features to be activated: Window
Getter for the outerWidth
field of this object.
This API requires the following crate features to be activated: Window
Setter for the outerWidth
field of this object.
This API requires the following crate features to be activated: Window
Getter for the outerHeight
field of this object.
This API requires the following crate features to be activated: Window
Setter for the outerHeight
field of this object.
This API requires the following crate features to be activated: Window
Getter for the devicePixelRatio
field of this object.
This API requires the following crate features to be activated: Window
Getter for the orientation
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onorientationchange
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onorientationchange
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onvrdisplayconnect
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onvrdisplayconnect
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onvrdisplaydisconnect
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onvrdisplaydisconnect
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onvrdisplayactivate
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onvrdisplayactivate
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onvrdisplaydeactivate
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onvrdisplaydeactivate
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onvrdisplaypresentchange
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onvrdisplaypresentchange
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onabort
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onabort
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onblur
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onblur
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onfocus
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onfocus
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onauxclick
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onauxclick
field of this object.
This API requires the following crate features to be activated: Window
Getter for the oncanplay
field of this object.
This API requires the following crate features to be activated: Window
Setter for the oncanplay
field of this object.
This API requires the following crate features to be activated: Window
Getter for the oncanplaythrough
field of this object.
This API requires the following crate features to be activated: Window
Setter for the oncanplaythrough
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onchange
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onchange
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onclick
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onclick
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onclose
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onclose
field of this object.
This API requires the following crate features to be activated: Window
Getter for the oncontextmenu
field of this object.
This API requires the following crate features to be activated: Window
Setter for the oncontextmenu
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ondblclick
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ondblclick
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ondrag
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ondrag
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ondragend
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ondragend
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ondragenter
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ondragenter
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ondragexit
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ondragexit
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ondragleave
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ondragleave
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ondragover
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ondragover
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ondragstart
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ondragstart
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ondrop
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ondrop
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ondurationchange
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ondurationchange
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onemptied
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onemptied
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onended
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onended
field of this object.
This API requires the following crate features to be activated: Window
Getter for the oninput
field of this object.
This API requires the following crate features to be activated: Window
Setter for the oninput
field of this object.
This API requires the following crate features to be activated: Window
Getter for the oninvalid
field of this object.
This API requires the following crate features to be activated: Window
Setter for the oninvalid
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onkeydown
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onkeydown
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onkeypress
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onkeypress
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onkeyup
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onkeyup
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onload
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onload
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onloadeddata
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onloadeddata
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onloadedmetadata
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onloadedmetadata
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onloadend
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onloadend
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onloadstart
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onloadstart
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onmousedown
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onmousedown
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onmouseenter
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onmouseenter
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onmouseleave
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onmouseleave
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onmousemove
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onmousemove
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onmouseout
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onmouseout
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onmouseover
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onmouseover
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onmouseup
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onmouseup
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onwheel
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onwheel
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onpause
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onpause
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onplay
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onplay
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onplaying
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onplaying
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onprogress
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onprogress
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onratechange
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onratechange
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onreset
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onreset
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onresize
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onresize
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onscroll
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onscroll
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onseeked
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onseeked
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onseeking
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onseeking
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onselect
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onselect
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onshow
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onshow
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onstalled
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onstalled
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onsubmit
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onsubmit
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onsuspend
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onsuspend
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ontimeupdate
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ontimeupdate
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onvolumechange
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onvolumechange
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onwaiting
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onwaiting
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onselectstart
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onselectstart
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ontoggle
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ontoggle
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onpointercancel
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onpointercancel
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onpointerdown
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onpointerdown
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onpointerup
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onpointerup
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onpointermove
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onpointermove
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onpointerout
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onpointerout
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onpointerover
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onpointerover
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onpointerenter
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onpointerenter
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onpointerleave
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onpointerleave
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ongotpointercapture
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ongotpointercapture
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onlostpointercapture
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onlostpointercapture
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onanimationcancel
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onanimationcancel
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onanimationend
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onanimationend
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onanimationiteration
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onanimationiteration
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onanimationstart
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onanimationstart
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ontransitioncancel
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ontransitioncancel
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ontransitionend
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ontransitionend
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ontransitionrun
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ontransitionrun
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ontransitionstart
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ontransitionstart
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onwebkitanimationend
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onwebkitanimationend
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onwebkitanimationiteration
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onwebkitanimationiteration
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onwebkitanimationstart
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onwebkitanimationstart
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onwebkittransitionend
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onwebkittransitionend
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onerror
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onerror
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ontouchstart
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ontouchstart
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ontouchend
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ontouchend
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ontouchmove
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ontouchmove
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ontouchcancel
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ontouchcancel
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onafterprint
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onafterprint
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onbeforeprint
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onbeforeprint
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onbeforeunload
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onbeforeunload
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onhashchange
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onhashchange
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onlanguagechange
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onlanguagechange
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onmessage
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onmessage
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onmessageerror
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onmessageerror
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onoffline
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onoffline
field of this object.
This API requires the following crate features to be activated: Window
Getter for the ononline
field of this object.
This API requires the following crate features to be activated: Window
Setter for the ononline
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onpagehide
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onpagehide
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onpageshow
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onpageshow
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onpopstate
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onpopstate
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onstorage
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onstorage
field of this object.
This API requires the following crate features to be activated: Window
Getter for the onunload
field of this object.
This API requires the following crate features to be activated: Window
Setter for the onunload
field of this object.
This API requires the following crate features to be activated: Window
Getter for the origin
field of this object.
This API requires the following crate features to be activated: Window
Getter for the isSecureContext
field of this object.
This API requires the following crate features to be activated: Window
The alert()
method.
This API requires the following crate features to be activated: Window
The cancelAnimationFrame()
method.
This API requires the following crate features to be activated: Window
The cancelIdleCallback()
method.
This API requires the following crate features to be activated: Window
The captureEvents()
method.
This API requires the following crate features to be activated: Window
The confirm()
method.
This API requires the following crate features to be activated: Window
The open()
method.
This API requires the following crate features to be activated: Window
The open()
method.
This API requires the following crate features to be activated: Window
The open()
method.
This API requires the following crate features to be activated: Window
The postMessage()
method.
This API requires the following crate features to be activated: Window
The postMessage()
method.
This API requires the following crate features to be activated: Window
The prompt()
method.
This API requires the following crate features to be activated: Window
The prompt()
method.
This API requires the following crate features to be activated: Window
The releaseEvents()
method.
This API requires the following crate features to be activated: Window
The requestAnimationFrame()
method.
This API requires the following crate features to be activated: Window
The requestIdleCallback()
method.
This API requires the following crate features to be activated: Window
The scroll()
method.
This API requires the following crate features to be activated: Window
The scroll()
method.
This API requires the following crate features to be activated: Window
The scrollBy()
method.
This API requires the following crate features to be activated: Window
The scrollBy()
method.
This API requires the following crate features to be activated: Window
The scrollTo()
method.
This API requires the following crate features to be activated: Window
The scrollTo()
method.
This API requires the following crate features to be activated: Window
The clearInterval()
method.
This API requires the following crate features to be activated: Window
The clearInterval()
method.
This API requires the following crate features to be activated: Window
The clearTimeout()
method.
This API requires the following crate features to be activated: Window
The clearTimeout()
method.
This API requires the following crate features to be activated: Window
The createImageBitmap()
method.
This API requires the following crate features to be activated: Window
The createImageBitmap()
method.
This API requires the following crate features to be activated: Window
The createImageBitmap()
method.
This API requires the following crate features to be activated: Window
The createImageBitmap()
method.
This API requires the following crate features to be activated: Window
The fetch()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setInterval()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
The setTimeout()
method.
This API requires the following crate features to be activated: Window
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.
type Target = EventTarget
type Target = EventTarget
The resulting type after dereferencing.
Dereferences the value.
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<Window>
type Anchor = ManuallyDrop<Window>
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: <Window as RefFromWasmAbi>::Abi
) -> <Window as RefFromWasmAbi>::Anchor
pub unsafe fn ref_from_abi(
js: <Window as RefFromWasmAbi>::Abi
) -> <Window as RefFromWasmAbi>::Anchor
Recover a Self::Anchor
from Self::Abi
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Window
impl UnwindSafe for Window
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