Skip to main content

WeakReferenceableDomObjectWrap

Trait WeakReferenceableDomObjectWrap 

Source
pub 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".

Implementors§