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