Skip to main content

WeakReferenceableDomObjectWrap

Trait WeakReferenceableDomObjectWrap 

Source
pub(crate) trait WeakReferenceableDomObjectWrap<D>:
    Sized
    + DomObject
    + DomGlobalGeneric<D>
where D: DomTypes,
{ const WRAP: unsafe fn(&mut JSContext, &<D as DomTypes>::GlobalScope, Option<Handle<'_, *mut JSObject>>, Rc<Self>) -> Root<Dom<Self>>; }
Expand description

A trait to provide a function pointer to wrap function for DOM objects.

Required Associated Constants§

Source

const WRAP: unsafe fn(&mut JSContext, &<D as DomTypes>::GlobalScope, Option<Handle<'_, *mut JSObject>>, Rc<Self>) -> Root<Dom<Self>>

Function pointer to the general wrap function type

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for AbortSignal

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for EventSource

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for Blob

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for File

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for MessagePort

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for HTMLAudioElement

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for HTMLCanvasElement

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for HTMLVideoElement

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for MediaQueryList

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for AbstractRange

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for Range

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for StaticRange

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for URL

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for WebGLRenderingContext

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for WebGLShader

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for GPUCanvasContext

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for GPUDevice

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for RTCPeerConnection

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for WebSocket

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>

Source§

impl WeakReferenceableDomObjectWrap<DomTypeHolder> for XRSession

Source§

const WRAP: unsafe fn(&mut JSContext, &GlobalScope, Option<HandleObject<'_>>, Rc<Self>) -> Root<Dom<Self>>