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>, _can_gc: CanGc) -> Result<(), Error>;
    fn Remove(
        &self,
        tokens: Vec<DOMString>,
        _can_gc: CanGc,
    ) -> Result<(), Error>;
    fn Toggle(
        &self,
        token: DOMString,
        force: Option<bool>,
        _can_gc: CanGc,
    ) -> Result<bool, Error>;
    fn Replace(
        &self,
        token: DOMString,
        newToken: DOMString,
        _can_gc: CanGc,
    ) -> Result<bool, Error>;
    fn Supports(&self, token: DOMString) -> Result<bool, Error>;
    fn Value(&self) -> DOMString;
    fn SetValue(&self, value: DOMString, _can_gc: CanGc);
    fn IndexedGetter(&self, index: u32) -> Option<DOMString>;
}

Required Methods§

source

fn Length(&self) -> u32

source

fn Item(&self, index: u32) -> Option<DOMString>

source

fn Contains(&self, token: DOMString) -> bool

source

fn Add(&self, tokens: Vec<DOMString>, _can_gc: CanGc) -> Result<(), Error>

source

fn Remove(&self, tokens: Vec<DOMString>, _can_gc: CanGc) -> Result<(), Error>

source

fn Toggle( &self, token: DOMString, force: Option<bool>, _can_gc: CanGc, ) -> Result<bool, Error>

source

fn Replace( &self, token: DOMString, newToken: DOMString, _can_gc: CanGc, ) -> Result<bool, Error>

source

fn Supports(&self, token: DOMString) -> Result<bool, Error>

source

fn Value(&self) -> DOMString

source

fn SetValue(&self, value: DOMString, _can_gc: CanGc)

source

fn IndexedGetter(&self, index: u32) -> Option<DOMString>

Implementors§