pub trait DomObjectWrap: Sized + DomObject {
const WRAP: unsafe fn(_: JSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>) -> Root<Dom<Self>>;
}
Expand description
A trait to provide a function pointer to wrap function for DOM objects.
Required Associated Constants§
sourceconst WRAP: unsafe fn(_: JSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>) -> Root<Dom<Self>>
const WRAP: unsafe fn(_: JSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>) -> Root<Dom<Self>>
Function pointer to the general wrap function type