Skip to main content

DomObject

Trait DomObject 

Source
pub trait DomObject: Traceable + 'static {
    type ReflectorType: AssociatedMemorySize;

    // Required method
    fn reflector(&self) -> &Reflector<Self::ReflectorType>;
}
Expand description

A trait to provide access to the Reflector for a DOM object.

Required Associated Types§

Required Methods§

Source

fn reflector(&self) -> &Reflector<Self::ReflectorType>

Returns the receiver’s reflector.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§