Skip to main content

IDLInterface

Trait IDLInterface 

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

    // 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 = 0

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

Source

const PROTO_LAST: u16 = u16::MAX

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§

Source§

impl<D, T> IDLInterface for IterableIterator<D, T>

§

impl<D: DomTypes> IDLInterface for GPU<D>

§

const PROTO_FIRST: u16 = 367

§

const PROTO_LAST: u16 = 367

§

impl<D: DomTypes> IDLInterface for GPUAdapter<D>

§

const PROTO_FIRST: u16 = 368

§

const PROTO_LAST: u16 = 368

§

impl<D: DomTypes> IDLInterface for GPUAdapterInfo<D>

§

const PROTO_FIRST: u16 = 369

§

const PROTO_LAST: u16 = 369

§

impl<D: DomTypes> IDLInterface for GPUBindGroup<D>

§

const PROTO_FIRST: u16 = 370

§

const PROTO_LAST: u16 = 370

§

impl<D: DomTypes> IDLInterface for GPUBindGroupLayout<D>

§

const PROTO_FIRST: u16 = 371

§

const PROTO_LAST: u16 = 371

§

impl<D: DomTypes> IDLInterface for GPUBuffer<D>

§

const PROTO_FIRST: u16 = 372

§

const PROTO_LAST: u16 = 372

§

impl<D: DomTypes> IDLInterface for GPUCommandBuffer<D>

§

const PROTO_FIRST: u16 = 374

§

const PROTO_LAST: u16 = 374

§

impl<D: DomTypes> IDLInterface for GPUCompilationInfo<D>

§

const PROTO_FIRST: u16 = 376

§

const PROTO_LAST: u16 = 376

§

impl<D: DomTypes> IDLInterface for GPUCompilationMessage<D>

§

const PROTO_FIRST: u16 = 377

§

const PROTO_LAST: u16 = 377

§

impl<D: DomTypes> IDLInterface for GPUDeviceLostInfo<D>

§

const PROTO_FIRST: u16 = 380

§

const PROTO_LAST: u16 = 380

§

impl<D: DomTypes> IDLInterface for GPURenderBundle<D>

§

const PROTO_FIRST: u16 = 389

§

const PROTO_LAST: u16 = 389

§

impl<D: DomTypes> IDLInterface for GPUSupportedFeatures<D>

§

const PROTO_FIRST: u16 = 395

§

const PROTO_LAST: u16 = 395

§

impl<D: DomTypes> IDLInterface for GPUSupportedLimits<D>

§

const PROTO_FIRST: u16 = 397

§

const PROTO_LAST: u16 = 397

§

impl<D: DomTypes> IDLInterface for WGSLLanguageFeatures<D>

§

const PROTO_FIRST: u16 = 546

§

const PROTO_LAST: u16 = 546