pub(crate) 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§
Sourceconst PROTO_FIRST: u16 = 0u16
const PROTO_FIRST: u16 = 0u16
First prototype ID in the DFS-ordered range for this interface and its descendants.
Sourceconst PROTO_LAST: u16 = 65_535u16
const PROTO_LAST: u16 = 65_535u16
Last prototype ID in the DFS-ordered range for this interface and its descendants.
Required Methods§
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.