script_bindings::conversions

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", so this trait is not object safe.

Implementors§

impl IDLInterface for URL

impl IDLInterface for GPU