pub(crate) trait TestBindingMaplikeWithInterfaceMethods<D>where
D: DomTypes,{
// Required methods
fn SetInternal(
&self,
aKey: DOMString,
aValue: &<D as DomTypes>::TestBinding,
);
fn ClearInternal(&self);
fn DeleteInternal(&self, aKey: DOMString) -> bool;
fn HasInternal(&self, aKey: DOMString) -> bool;
fn GetInternal(
&self,
aKey: DOMString,
) -> Result<Root<Dom<<D as DomTypes>::TestBinding>>, 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>::TestBindingMaplikeWithInterface>>, Error>;
}
Required Methods§
fn SetInternal(&self, aKey: DOMString, aValue: &<D as DomTypes>::TestBinding)
fn ClearInternal(&self)
fn DeleteInternal(&self, aKey: DOMString) -> bool
fn HasInternal(&self, aKey: DOMString) -> bool
fn GetInternal( &self, aKey: DOMString, ) -> Result<Root<Dom<<D as DomTypes>::TestBinding>>, 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>::TestBindingMaplikeWithInterface>>, 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.