script_bindings::reflector

Trait MutDomObject

Source
pub trait MutDomObject: DomObject {
    // Required method
    unsafe fn init_reflector(&self, obj: *mut JSObject);
}
Expand description

A trait to initialize the Reflector for a DOM object.

Required Methods§

Source

unsafe fn init_reflector(&self, obj: *mut JSObject)

Initializes the Reflector

§Safety

The provided JSObject pointer must point to a valid JSObject.

Implementors§

Source§

impl MutDomObject for Reflector

impl MutDomObject for CSS

impl MutDomObject for URL

impl MutDomObject for GPU