script::dom::bindings::interface

Function create_callback_interface_object

Source
pub(crate) fn create_callback_interface_object<D: DomTypes>(
    cx: JSContext,
    global: HandleObject<'_>,
    constants: &[Guard<&[ConstantSpec]>],
    name: &CStr,
    rval: MutableHandleObject<'_>,
)
Expand description

Create and define the interface object of a callback interface.