Skip to main content

IDLInterface

Trait IDLInterface 

Source
pub trait IDLInterface {
    // Required method
    fn derives(_: &'static DOMClass) -> bool;
}
Expand description

A trait to check whether a given JSObject implements an IDL interface.

Required Methods§

Source

fn derives(_: &'static DOMClass) -> bool

Returns whether the given DOM class derives that interface.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§