script_bindings::reflector

Trait DomObjectIteratorWrap

Source
pub trait DomObjectIteratorWrap<D: DomTypes>:
    DomObjectWrap<D>
    + JSTraceable
    + Iterable {
    const ITER_WRAP: unsafe fn(_: JSContext, _: &D::GlobalScope, _: Option<HandleObject<'_>>, _: Box<IterableIterator<D, Self>>, _: CanGc) -> Root<Dom<IterableIterator<D, Self>>>;
}
Expand description

A trait to provide a function pointer to wrap function for DOM iterator interfaces.

Required Associated Constants§

Source

const ITER_WRAP: unsafe fn(_: JSContext, _: &D::GlobalScope, _: Option<HandleObject<'_>>, _: Box<IterableIterator<D, Self>>, _: CanGc) -> Root<Dom<IterableIterator<D, Self>>>

Function pointer to the wrap function for IterableIterator<T>

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§