Trait toks::Tok [] [src]

pub trait Tok {
    fn is_match(&self, _: &QualName) -> bool;
fn process(&mut self, _: RefCell<Vec<Attribute>>, _: RefCell<Vec<Handle>>); }

Tok in short for token which is used to recursively walk through rcdom::Handle when QualName match is found process function is called.

Combining Tok's into Vec makes it advantageous to walk HTML DOM only once and collect all interested elements.

Required Methods

Matcher function which matches predefined QualName.

Depending on the result of boolean match this allows process function to proceed.

Process function gets matched QualName attributes and children of matched element.

Implementors