IDLInterface

Trait IDLInterface 

Source
pub trait IDLInterface {
    const PROTO_FIRST: u16 = 0u16;
    const PROTO_LAST: u16 = 65_535u16;

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

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

Provided Associated Constants§

Source

const PROTO_FIRST: u16 = 0u16

First prototype ID in the DFS-ordered range for this interface and its descendants.

Source

const PROTO_LAST: u16 = 65_535u16

Last prototype ID in the DFS-ordered range for this interface and its descendants.

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§