Trait xml5ever::tokenizer::TokenSink [] [src]

pub trait TokenSink {
    fn process_token(&mut self, token: Token);

    fn query_state_change(&mut self) -> Option<XmlState> { ... }
}

Types which can receive tokens from the tokenizer.

Required Methods

Process a token.

Provided Methods

The tokenizer will call this after emitting any start tag. This allows the tree builder to change the tokenizer's state. By default no state changes occur.

Implementors