pub(crate) trait DomHelpers<D: DomTypes> {
// Required methods
fn throw_dom_exception(
cx: SafeJSContext,
global: &D::GlobalScope,
result: Error,
);
unsafe fn call_html_constructor<T: DerivedFrom<D::Element> + DomObject>(
cx: SafeJSContext,
args: &CallArgs,
global: &D::GlobalScope,
proto_id: ID,
creator: unsafe fn(_: SafeJSContext, _: HandleObject<'_>, _: *mut [*mut JSObject; 608]),
can_gc: CanGc,
) -> bool;
fn settings_stack() -> &'static LocalKey<RefCell<Vec<StackEntry<D>>>>;
}
Expand description
Operations that must be invoked from the generated bindings.
Required Methods§
fn throw_dom_exception( cx: SafeJSContext, global: &D::GlobalScope, result: Error, )
unsafe fn call_html_constructor<T: DerivedFrom<D::Element> + DomObject>( cx: SafeJSContext, args: &CallArgs, global: &D::GlobalScope, proto_id: ID, creator: unsafe fn(_: SafeJSContext, _: HandleObject<'_>, _: *mut [*mut JSObject; 608]), can_gc: CanGc, ) -> bool
fn settings_stack() -> &'static LocalKey<RefCell<Vec<StackEntry<D>>>>
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.