Struct xml5ever::tokenizer::XmlTokenizer
[−]
[src]
pub struct XmlTokenizer<Sink> { /* fields omitted */ }
The Xml tokenizer.
Methods
impl<Sink: TokenSink> XmlTokenizer<Sink>
[src]
fn new(sink: Sink, opts: XmlTokenizerOpts) -> XmlTokenizer<Sink>
Create a new tokenizer which feeds tokens to a particular TokenSink
.
fn unwrap(self) -> Sink
Returns destination of token events.
fn sink<'a>(&'a self) -> &'a Sink
Immutably borrows destination of token events.
fn sink_mut<'a>(&'a mut self) -> &'a mut Sink
Mutably borrows destinantion of token events.
fn feed(&mut self, input: StrTendril)
Feed an input string into the tokenizer.
fn run(&mut self)
Run the state machine for as long as we can.
impl<Sink: TokenSink> XmlTokenizer<Sink>
[src]
fn end(&mut self)
Indicate that we have reached the end of the input.