pub trait TestBindingMaplikeWithPrimitiveMethods<D>where
D: DomTypes,{
// Required methods
fn SetInternal(&self, aKey: DOMString, aValue: i32);
fn ClearInternal(&self);
fn DeleteInternal(&self, aKey: DOMString) -> bool;
fn HasInternal(&self, aKey: DOMString) -> bool;
fn GetInternal(&self, aKey: DOMString) -> Result<i32, Error>;
fn Size(&self) -> u32;
fn Constructor(
global: &<D as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
) -> Result<Root<Dom<<D as DomTypes>::TestBindingMaplikeWithPrimitive>>, Error>;
}
Required Methods§
fn SetInternal(&self, aKey: DOMString, aValue: i32)
fn ClearInternal(&self)
fn DeleteInternal(&self, aKey: DOMString) -> bool
fn HasInternal(&self, aKey: DOMString) -> bool
fn GetInternal(&self, aKey: DOMString) -> Result<i32, Error>
fn Size(&self) -> u32
fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, ) -> Result<Root<Dom<<D as DomTypes>::TestBindingMaplikeWithPrimitive>>, Error>
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.