Trait DOMTokenListMethods
Source pub trait DOMTokenListMethods<D: DomTypes> {
// Required methods
fn Length(&self) -> u32;
fn Item(&self, index: u32) -> Option<DOMString>;
fn Contains(&self, token: DOMString) -> bool;
fn Add(&self, cx: &mut JSContext, tokens: Vec<DOMString>) -> Fallible<()>;
fn Remove(&self, cx: &mut JSContext, tokens: Vec<DOMString>) -> Fallible<()>;
fn Toggle(
&self,
cx: &mut JSContext,
token: DOMString,
force: Option<bool>,
) -> Fallible<bool>;
fn Replace(
&self,
cx: &mut JSContext,
token: DOMString,
newToken: DOMString,
) -> Fallible<bool>;
fn Supports(&self, token: DOMString) -> Fallible<bool>;
fn Value(&self) -> DOMString;
fn SetValue(&self, cx: &mut JSContext, value: DOMString);
fn IndexedGetter(&self, index: u32) -> Option<DOMString>;
}