pub(crate) trait TestBindingIterableMethods<D>where
D: DomTypes,{
// Required methods
fn Add(&self, arg: DOMString);
fn Length(&self) -> u32;
fn GetItem(&self, index: u32) -> DOMString;
fn IndexedGetter(&self, index: u32) -> Option<DOMString>;
fn Constructor(
cx: &mut JSContext,
global: &<D as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
) -> Result<Root<Dom<<D as DomTypes>::TestBindingIterable>>, Error>;
}Required Methods§
fn Add(&self, arg: DOMString)
fn Length(&self) -> u32
fn GetItem(&self, index: u32) -> DOMString
fn IndexedGetter(&self, index: u32) -> Option<DOMString>
fn Constructor( cx: &mut JSContext, global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, ) -> Result<Root<Dom<<D as DomTypes>::TestBindingIterable>>, 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.