pub(crate) trait DomObjectWrap<D>:
Sized
+ DomObject
+ DomGlobalGeneric<D>where
D: DomTypes,{
const WRAP: unsafe fn(_: JSContext, _: &<D as DomTypes>::GlobalScope, _: Option<Handle<'_, *mut JSObject>>, _: Box<Self>, _: CanGc) -> Root<Dom<Self>>;
}
Expand description
A trait to provide a function pointer to wrap function for DOM objects.
Required Associated Constants§
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.