pub trait DomObject: JSTraceable + 'static {
// Required method
fn reflector(&self) -> &Reflector;
// Provided method
fn global(&self) -> Root<Dom<GlobalScope>>
where Self: Sized { ... }
}
Expand description
A trait to provide access to the Reflector
for a DOM object.