Struct html5ever::driver::Parser [] [src]

pub struct Parser<Sink> where
    Sink: TreeSink
{ pub tokenizer: Tokenizer<TreeBuilder<Sink::Handle, Sink>>, pub input_buffer: BufferQueue, }

An HTML parser, ready to receive Unicode input through the tendril::TendrilSink trait’s methods.

Fields

Methods

impl<Sink: TreeSink> Parser<Sink>
[src]

[src]

Wrap this parser into a TendrilSink that accepts UTF-8 bytes.

Use this when your input is bytes that are known to be in the UTF-8 encoding. Decoding is lossy, like String::from_utf8_lossy.

Trait Implementations

impl<Sink: TreeSink> TendrilSink<UTF8> for Parser<Sink>
[src]

[src]

Process this tendril.

[src]

Indicates that an error has occurred.

What the overall result of processing is.

[src]

Indicates the end of the stream.

[src]

Process one tendril and finish.

[src]

Consume an iterator of tendrils, processing each item, then finish.

[src]

Read from the given stream of bytes until exhaustion and process incrementally, then finish. Return Err at the first I/O error. Read more

[src]

Read from the file at the given path and process incrementally, then finish. Return Err at the first I/O error. Read more