pub trait TestBindingMaplikeWithPrimitiveMethods<D: DomTypes> {
// Required methods
fn SetInternal(&self, cx: &mut JSContext, aKey: DOMString, aValue: i32);
fn ClearInternal(&self, cx: &mut JSContext);
fn DeleteInternal(&self, cx: &mut JSContext, aKey: DOMString) -> bool;
fn HasInternal(&self, cx: &mut JSContext, aKey: DOMString) -> bool;
fn GetInternal(&self, aKey: DOMString) -> Fallible<i32>;
fn Size(&self, cx: &mut JSContext) -> u32;
fn Constructor(
cx: &mut JSContext,
global: &D::GlobalScope,
proto: Option<HandleObject<'_>>,
) -> Fallible<DomRoot<D::TestBindingMaplikeWithPrimitive>>;
}Required Methods§
fn SetInternal(&self, cx: &mut JSContext, aKey: DOMString, aValue: i32)
fn ClearInternal(&self, cx: &mut JSContext)
fn DeleteInternal(&self, cx: &mut JSContext, aKey: DOMString) -> bool
fn HasInternal(&self, cx: &mut JSContext, aKey: DOMString) -> bool
fn GetInternal(&self, aKey: DOMString) -> Fallible<i32>
fn Size(&self, cx: &mut JSContext) -> u32
fn Constructor( cx: &mut JSContext, global: &D::GlobalScope, proto: Option<HandleObject<'_>>, ) -> Fallible<DomRoot<D::TestBindingMaplikeWithPrimitive>>
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.