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

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

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

Types which can receive tokens from the tokenizer.

Required Methods

Process a token.

Provided Methods

Signal to the sink that parsing has ended.

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