Trait script::DomObject

source ·
pub trait DomObject: JSTraceable + 'static {
    // Required method
    fn reflector(&self) -> &Reflector;

    // Provided method
    fn global(&self) -> Root<Dom<GlobalScope>>
       where Self: Sized { ... }
}
Expand description

A trait to provide access to the Reflector for a DOM object.

Required Methods§

source

fn reflector(&self) -> &Reflector

Returns the receiver’s reflector.

Provided Methods§

source

fn global(&self) -> Root<Dom<GlobalScope>>
where Self: Sized,

Returns the global scope of the realm that the DomObject was created in.

Implementors§

source§

impl DomObject for AbortController

source§

impl DomObject for AbstractRange

source§

impl DomObject for AnalyserNode

source§

impl DomObject for AnimationEvent

source§

impl DomObject for Attr

source§

impl DomObject for AudioBuffer

source§

impl DomObject for AudioBufferSourceNode

source§

impl DomObject for AudioContext

source§

impl DomObject for AudioDestinationNode

source§

impl DomObject for AudioListener

source§

impl DomObject for AudioNode

source§

impl DomObject for AudioParam

source§

impl DomObject for AudioScheduledSourceNode

source§

impl DomObject for AudioTrack

source§

impl DomObject for AudioTrackList

source§

impl DomObject for BaseAudioContext

source§

impl DomObject for BeforeUnloadEvent

source§

impl DomObject for Reflector

source§

impl DomObject for BiquadFilterNode

source§

impl DomObject for Blob

source§

impl DomObject for Bluetooth

source§

impl DomObject for BluetoothAdvertisingEvent

source§

impl DomObject for BluetoothCharacteristicProperties

source§

impl DomObject for BluetoothDevice

source§

impl DomObject for BluetoothPermissionResult

source§

impl DomObject for BluetoothRemoteGATTCharacteristic

source§

impl DomObject for BluetoothRemoteGATTDescriptor

source§

impl DomObject for BluetoothRemoteGATTServer

source§

impl DomObject for BluetoothRemoteGATTService

source§

impl DomObject for BluetoothUUID

source§

impl DomObject for BroadcastChannel

source§

impl DomObject for ByteLengthQueuingStrategy

source§

impl DomObject for CanvasGradient

source§

impl DomObject for CanvasPattern

source§

impl DomObject for CanvasRenderingContext2D

source§

impl DomObject for CDATASection

source§

impl DomObject for ChannelMergerNode

source§

impl DomObject for ChannelSplitterNode

source§

impl DomObject for CharacterData

source§

impl DomObject for Client

source§

impl DomObject for CloseEvent

source§

impl DomObject for Comment

source§

impl DomObject for CompositionEvent

source§

impl DomObject for ConstantSourceNode

source§

impl DomObject for CountQueuingStrategy

source§

impl DomObject for Crypto

source§

impl DomObject for CryptoKey

source§

impl DomObject for CSS

source§

impl DomObject for CSSConditionRule

source§

impl DomObject for CSSFontFaceRule

source§

impl DomObject for CSSGroupingRule

source§

impl DomObject for CSSImportRule

source§

impl DomObject for CSSKeyframeRule

source§

impl DomObject for CSSKeyframesRule

source§

impl DomObject for CSSLayerBlockRule

source§

impl DomObject for CSSLayerStatementRule

source§

impl DomObject for CSSMediaRule

source§

impl DomObject for CSSNamespaceRule

source§

impl DomObject for CSSRule

source§

impl DomObject for CSSRuleList

source§

impl DomObject for CSSStyleDeclaration

source§

impl DomObject for CSSStyleRule

source§

impl DomObject for CSSStyleSheet

source§

impl DomObject for CSSStyleValue

source§

impl DomObject for CSSSupportsRule

source§

impl DomObject for CustomElementRegistry

source§

impl DomObject for CustomEvent

source§

impl DomObject for DataTransfer

source§

impl DomObject for DataTransferItem

source§

impl DomObject for DataTransferItemList

source§

impl DomObject for DedicatedWorkerGlobalScope

source§

impl DomObject for DefaultTeeReadRequest

source§

impl DomObject for DefaultTeeUnderlyingSource

source§

impl DomObject for DissimilarOriginLocation

source§

impl DomObject for DissimilarOriginWindow

source§

impl DomObject for Document

source§

impl DomObject for DocumentFragment

source§

impl DomObject for DocumentType

source§

impl DomObject for DOMException

source§

impl DomObject for DOMImplementation

source§

impl DomObject for DOMMatrix

source§

impl DomObject for DOMMatrixReadOnly

source§

impl DomObject for DOMParser

source§

impl DomObject for DOMPoint

source§

impl DomObject for DOMPointReadOnly

source§

impl DomObject for DOMQuad

source§

impl DomObject for DOMRect

source§

impl DomObject for DOMRectList

source§

impl DomObject for DOMRectReadOnly

source§

impl DomObject for DOMStringList

source§

impl DomObject for DOMStringMap

source§

impl DomObject for DOMTokenList

source§

impl DomObject for DynamicModuleOwner

source§

impl DomObject for Element

source§

impl DomObject for ElementInternals

source§

impl DomObject for ErrorEvent

source§

impl DomObject for Event

source§

impl DomObject for EventSource

source§

impl DomObject for EventTarget

source§

impl DomObject for ExtendableEvent

source§

impl DomObject for ExtendableMessageEvent

source§

impl DomObject for File

source§

impl DomObject for FileList

source§

impl DomObject for FileReader

source§

impl DomObject for FileReaderSync

source§

impl DomObject for FocusEvent

source§

impl DomObject for FontFaceSet

source§

impl DomObject for FormData

source§

impl DomObject for FormDataEvent

source§

impl DomObject for GainNode

source§

impl DomObject for Gamepad

source§

impl DomObject for GamepadButton

source§

impl DomObject for GamepadButtonList

source§

impl DomObject for GamepadEvent

source§

impl DomObject for GamepadHapticActuator

source§

impl DomObject for GamepadPose

source§

impl DomObject for GlobalScope

source§

impl DomObject for HashChangeEvent

source§

impl DomObject for Headers

source§

impl DomObject for History

source§

impl DomObject for HTMLAnchorElement

source§

impl DomObject for HTMLAreaElement

source§

impl DomObject for HTMLAudioElement

source§

impl DomObject for HTMLBaseElement

source§

impl DomObject for HTMLBodyElement

source§

impl DomObject for HTMLBRElement

source§

impl DomObject for HTMLButtonElement

source§

impl DomObject for HTMLCanvasElement

source§

impl DomObject for HTMLCollection

source§

impl DomObject for HTMLDataElement

source§

impl DomObject for HTMLDataListElement

source§

impl DomObject for HTMLDetailsElement

source§

impl DomObject for HTMLDialogElement

source§

impl DomObject for HTMLDirectoryElement

source§

impl DomObject for HTMLDivElement

source§

impl DomObject for HTMLDListElement

source§

impl DomObject for HTMLElement

source§

impl DomObject for HTMLEmbedElement

source§

impl DomObject for HTMLFieldSetElement

source§

impl DomObject for HTMLFontElement

source§

impl DomObject for HTMLFormControlsCollection

source§

impl DomObject for HTMLFormElement

source§

impl DomObject for HTMLFrameElement

source§

impl DomObject for HTMLFrameSetElement

source§

impl DomObject for HTMLHeadElement

source§

impl DomObject for HTMLHeadingElement

source§

impl DomObject for HTMLHRElement

source§

impl DomObject for HTMLHtmlElement

source§

impl DomObject for HTMLIFrameElement

source§

impl DomObject for HTMLImageElement

source§

impl DomObject for HTMLInputElement

source§

impl DomObject for HTMLLabelElement

source§

impl DomObject for HTMLLegendElement

source§

impl DomObject for HTMLLIElement

source§

impl DomObject for HTMLLinkElement

source§

impl DomObject for HTMLMapElement

source§

impl DomObject for HTMLMediaElement

source§

impl DomObject for HTMLMenuElement

source§

impl DomObject for HTMLMetaElement

source§

impl DomObject for HTMLMeterElement

source§

impl DomObject for HTMLModElement

source§

impl DomObject for HTMLObjectElement

source§

impl DomObject for HTMLOListElement

source§

impl DomObject for HTMLOptGroupElement

source§

impl DomObject for HTMLOptionElement

source§

impl DomObject for HTMLOptionsCollection

source§

impl DomObject for HTMLOutputElement

source§

impl DomObject for HTMLParagraphElement

source§

impl DomObject for HTMLParamElement

source§

impl DomObject for HTMLPictureElement

source§

impl DomObject for HTMLPreElement

source§

impl DomObject for HTMLProgressElement

source§

impl DomObject for HTMLQuoteElement

source§

impl DomObject for HTMLScriptElement

source§

impl DomObject for HTMLSelectElement

source§

impl DomObject for HTMLSourceElement

source§

impl DomObject for HTMLSpanElement

source§

impl DomObject for HTMLStyleElement

source§

impl DomObject for HTMLTableCaptionElement

source§

impl DomObject for HTMLTableCellElement

source§

impl DomObject for HTMLTableColElement

source§

impl DomObject for HTMLTableElement

source§

impl DomObject for HTMLTableRowElement

source§

impl DomObject for HTMLTableSectionElement

source§

impl DomObject for HTMLTemplateElement

source§

impl DomObject for HTMLTextAreaElement

source§

impl DomObject for HTMLTimeElement

source§

impl DomObject for HTMLTitleElement

source§

impl DomObject for HTMLTrackElement

source§

impl DomObject for HTMLUListElement

source§

impl DomObject for HTMLUnknownElement

source§

impl DomObject for HTMLVideoElement

source§

impl DomObject for IIRFilterNode

source§

impl DomObject for ImageBitmap

source§

impl DomObject for ImageData

source§

impl DomObject for InputEvent

source§

impl DomObject for IntersectionObserver

source§

impl DomObject for IntersectionObserverEntry

source§

impl DomObject for KeyboardEvent

source§

impl DomObject for Location

source§

impl DomObject for MediaDeviceInfo

source§

impl DomObject for MediaDevices

source§

impl DomObject for MediaElementAudioSourceNode

source§

impl DomObject for MediaError

source§

impl DomObject for MediaList

source§

impl DomObject for MediaMetadata

source§

impl DomObject for MediaQueryList

source§

impl DomObject for MediaQueryListEvent

source§

impl DomObject for MediaSession

source§

impl DomObject for MediaStream

source§

impl DomObject for MediaStreamAudioDestinationNode

source§

impl DomObject for MediaStreamAudioSourceNode

source§

impl DomObject for MediaStreamTrack

source§

impl DomObject for MediaStreamTrackAudioSourceNode

source§

impl DomObject for MessageChannel

source§

impl DomObject for MessageEvent

source§

impl DomObject for MessagePort

source§

impl DomObject for MimeType

source§

impl DomObject for MimeTypeArray

source§

impl DomObject for MouseEvent

source§

impl DomObject for MutationObserver

source§

impl DomObject for MutationRecord

source§

impl DomObject for NamedNodeMap

source§

impl DomObject for NavigationPreloadManager

source§

impl DomObject for Navigator

source§

impl DomObject for Node

source§

impl DomObject for NodeIterator

source§

impl DomObject for NodeList

source§

impl DomObject for OfflineAudioCompletionEvent

source§

impl DomObject for OfflineAudioContext

source§

impl DomObject for OffscreenCanvas

source§

impl DomObject for OffscreenCanvasRenderingContext2D

source§

impl DomObject for OscillatorNode

source§

impl DomObject for PageTransitionEvent

source§

impl DomObject for PaintRenderingContext2D

source§

impl DomObject for PaintSize

source§

impl DomObject for PaintWorkletGlobalScope

source§

impl DomObject for PannerNode

source§

impl DomObject for Performance

source§

impl DomObject for PerformanceEntry

source§

impl DomObject for PerformanceMark

source§

impl DomObject for PerformanceMeasure

source§

impl DomObject for PerformanceNavigation

source§

impl DomObject for PerformanceNavigationTiming

source§

impl DomObject for PerformanceObserver

source§

impl DomObject for PerformanceObserverEntryList

source§

impl DomObject for PerformancePaintTiming

source§

impl DomObject for PerformanceResourceTiming

source§

impl DomObject for Permissions

source§

impl DomObject for PermissionStatus

source§

impl DomObject for Plugin

source§

impl DomObject for PluginArray

source§

impl DomObject for PointerEvent

source§

impl DomObject for PopStateEvent

source§

impl DomObject for ProcessingInstruction

source§

impl DomObject for ProgressEvent

source§

impl DomObject for Promise

source§

impl DomObject for PromiseNativeHandler

source§

impl DomObject for PromiseRejectionEvent

source§

impl DomObject for RadioNodeList

source§

impl DomObject for Range

source§

impl DomObject for ReadableByteStreamController

source§

impl DomObject for ReadableStream

source§

impl DomObject for ReadableStreamBYOBReader

source§

impl DomObject for ReadableStreamBYOBRequest

source§

impl DomObject for ReadableStreamDefaultController

source§

impl DomObject for ReadableStreamDefaultReader

source§

impl DomObject for Request

source§

impl DomObject for ResizeObserver

source§

impl DomObject for ResizeObserverEntry

source§

impl DomObject for ResizeObserverSize

source§

impl DomObject for Response

source§

impl DomObject for RTCDataChannel

source§

impl DomObject for RTCDataChannelEvent

source§

impl DomObject for RTCError

source§

impl DomObject for RTCErrorEvent

source§

impl DomObject for RTCIceCandidate

source§

impl DomObject for RTCPeerConnection

source§

impl DomObject for RTCPeerConnectionIceEvent

source§

impl DomObject for RTCRtpSender

source§

impl DomObject for RTCRtpTransceiver

source§

impl DomObject for RTCSessionDescription

source§

impl DomObject for RTCTrackEvent

source§

impl DomObject for Screen

source§

impl DomObject for SecurityPolicyViolationEvent

source§

impl DomObject for Selection

source§

impl DomObject for ServiceWorker

source§

impl DomObject for ServiceWorkerContainer

source§

impl DomObject for ServiceWorkerGlobalScope

source§

impl DomObject for ServiceWorkerRegistration

source§

impl DomObject for ServoParser

source§

impl DomObject for ShadowRoot

source§

impl DomObject for StaticRange

source§

impl DomObject for StereoPannerNode

source§

impl DomObject for Storage

source§

impl DomObject for StorageEvent

source§

impl DomObject for StylePropertyMapReadOnly

source§

impl DomObject for StyleSheet

source§

impl DomObject for StyleSheetList

source§

impl DomObject for SubmitEvent

source§

impl DomObject for SubtleCrypto

source§

impl DomObject for SVGElement

source§

impl DomObject for SVGGraphicsElement

source§

impl DomObject for SVGSVGElement

source§

impl DomObject for TestBinding

source§

impl DomObject for TestBindingIterable

source§

impl DomObject for TestBindingMaplike

source§

impl DomObject for TestBindingPairIterable

source§

impl DomObject for TestBindingProxy

source§

impl DomObject for TestBindingSetlike

source§

impl DomObject for TestRunner

source§

impl DomObject for TestWorklet

source§

impl DomObject for TestWorkletGlobalScope

source§

impl DomObject for Text

source§

impl DomObject for TextDecoder

source§

impl DomObject for TextEncoder

source§

impl DomObject for TextMetrics

source§

impl DomObject for TextTrack

source§

impl DomObject for TextTrackCue

source§

impl DomObject for TextTrackCueList

source§

impl DomObject for TextTrackList

source§

impl DomObject for TimeRanges

source§

impl DomObject for Touch

source§

impl DomObject for TouchEvent

source§

impl DomObject for TouchList

source§

impl DomObject for TrackEvent

source§

impl DomObject for TransitionEvent

source§

impl DomObject for TreeWalker

source§

impl DomObject for UIEvent

source§

impl DomObject for UnderlyingSourceContainer

source§

impl DomObject for URL

source§

impl DomObject for URLSearchParams

source§

impl DomObject for ValidityState

source§

impl DomObject for VideoTrack

source§

impl DomObject for VideoTrackList

source§

impl DomObject for VisibilityStateEntry

source§

impl DomObject for VTTCue

source§

impl DomObject for VTTRegion

source§

impl DomObject for WebGL2RenderingContext

source§

impl DomObject for ANGLEInstancedArrays

source§

impl DomObject for EXTBlendMinmax

source§

impl DomObject for EXTColorBufferHalfFloat

source§

impl DomObject for EXTFragDepth

source§

impl DomObject for EXTShaderTextureLod

source§

impl DomObject for EXTTextureFilterAnisotropic

source§

impl DomObject for OESElementIndexUint

source§

impl DomObject for OESStandardDerivatives

source§

impl DomObject for OESTextureFloat

source§

impl DomObject for OESTextureFloatLinear

source§

impl DomObject for OESTextureHalfFloat

source§

impl DomObject for OESTextureHalfFloatLinear

source§

impl DomObject for OESVertexArrayObject

source§

impl DomObject for WEBGLColorBufferFloat

source§

impl DomObject for WEBGLCompressedTextureETC1

source§

impl DomObject for WEBGLCompressedTextureS3TC

source§

impl DomObject for WebGLActiveInfo

source§

impl DomObject for WebGLBuffer

source§

impl DomObject for WebGLContextEvent

source§

impl DomObject for WebGLFramebuffer

source§

impl DomObject for WebGLObject

source§

impl DomObject for WebGLProgram

source§

impl DomObject for WebGLQuery

source§

impl DomObject for WebGLRenderbuffer

source§

impl DomObject for WebGLRenderingContext

source§

impl DomObject for WebGLSampler

source§

impl DomObject for WebGLShader

source§

impl DomObject for WebGLShaderPrecisionFormat

source§

impl DomObject for WebGLSync

source§

impl DomObject for WebGLTexture

source§

impl DomObject for WebGLTransformFeedback

source§

impl DomObject for WebGLUniformLocation

source§

impl DomObject for WebGLVertexArrayObject

source§

impl DomObject for WebGLVertexArrayObjectOES

source§

impl DomObject for GPU

source§

impl DomObject for GPUAdapter

source§

impl DomObject for GPUAdapterInfo

source§

impl DomObject for GPUBindGroup

source§

impl DomObject for GPUBindGroupLayout

source§

impl DomObject for GPUBuffer

source§

impl DomObject for GPUBufferUsage

source§

impl DomObject for GPUCanvasContext

source§

impl DomObject for GPUColorWrite

source§

impl DomObject for GPUCommandBuffer

source§

impl DomObject for GPUCommandEncoder

source§

impl DomObject for GPUCompilationInfo

source§

impl DomObject for GPUCompilationMessage

source§

impl DomObject for GPUComputePassEncoder

source§

impl DomObject for GPUComputePipeline

source§

impl DomObject for GPUDevice

source§

impl DomObject for GPUDeviceLostInfo

source§

impl DomObject for GPUError

source§

impl DomObject for GPUInternalError

source§

impl DomObject for GPUMapMode

source§

impl DomObject for GPUOutOfMemoryError

source§

impl DomObject for GPUPipelineError

source§

impl DomObject for GPUPipelineLayout

source§

impl DomObject for GPUQuerySet

source§

impl DomObject for GPUQueue

source§

impl DomObject for GPURenderBundle

source§

impl DomObject for GPURenderBundleEncoder

source§

impl DomObject for GPURenderPassEncoder

source§

impl DomObject for GPURenderPipeline

source§

impl DomObject for GPUSampler

source§

impl DomObject for GPUShaderModule

source§

impl DomObject for GPUShaderStage

source§

impl DomObject for GPUSupportedFeatures

source§

impl DomObject for GPUSupportedLimits

source§

impl DomObject for GPUTexture

source§

impl DomObject for GPUTextureUsage

source§

impl DomObject for GPUTextureView

source§

impl DomObject for GPUUncapturedErrorEvent

source§

impl DomObject for GPUValidationError

source§

impl DomObject for WebSocket

source§

impl DomObject for FakeXRDevice

source§

impl DomObject for FakeXRInputController

source§

impl DomObject for XRBoundedReferenceSpace

source§

impl DomObject for XRCompositionLayer

source§

impl DomObject for XRCubeLayer

source§

impl DomObject for XRCylinderLayer

source§

impl DomObject for XREquirectLayer

source§

impl DomObject for XRFrame

source§

impl DomObject for XRHand

source§

impl DomObject for XRHitTestResult

source§

impl DomObject for XRHitTestSource

source§

impl DomObject for XRInputSource

source§

impl DomObject for XRInputSourceArray

source§

impl DomObject for XRInputSourceEvent

source§

impl DomObject for XRInputSourcesChangeEvent

source§

impl DomObject for XRJointPose

source§

impl DomObject for XRJointSpace

source§

impl DomObject for XRLayer

source§

impl DomObject for XRLayerEvent

source§

impl DomObject for XRMediaBinding

source§

impl DomObject for XRPose

source§

impl DomObject for XRProjectionLayer

source§

impl DomObject for XRQuadLayer

source§

impl DomObject for XRRay

source§

impl DomObject for XRReferenceSpace

source§

impl DomObject for XRReferenceSpaceEvent

source§

impl DomObject for XRRenderState

source§

impl DomObject for XRRigidTransform

source§

impl DomObject for XRSession

source§

impl DomObject for XRSessionEvent

source§

impl DomObject for XRSpace

source§

impl DomObject for XRSubImage

source§

impl DomObject for XRSystem

source§

impl DomObject for XRTest

source§

impl DomObject for XRView

source§

impl DomObject for XRViewerPose

source§

impl DomObject for XRViewport

source§

impl DomObject for XRWebGLBinding

source§

impl DomObject for XRWebGLLayer

source§

impl DomObject for XRWebGLSubImage

source§

impl DomObject for WheelEvent

source§

impl DomObject for Window

source§

impl DomObject for WindowProxy

source§

impl DomObject for Worker

source§

impl DomObject for WorkerGlobalScope

source§

impl DomObject for WorkerLocation

source§

impl DomObject for WorkerNavigator

source§

impl DomObject for Worklet

source§

impl DomObject for WorkletGlobalScope

source§

impl DomObject for XMLDocument

source§

impl DomObject for XMLHttpRequest

source§

impl DomObject for XMLHttpRequestEventTarget

source§

impl DomObject for XMLHttpRequestUpload

source§

impl DomObject for XMLSerializer

source§

impl DomObject for XPathEvaluator

source§

impl DomObject for XPathExpression

source§

impl DomObject for XPathResult

source§

impl<T: DomObjectIteratorWrap + JSTraceable + Iterable> DomObject for IterableIterator<T>