Struct html5ever::driver::BytesParser [] [src]

pub struct BytesParser<Sink> where Sink: TreeSink { /* fields omitted */ }

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

See Parser::from_bytes.

Methods

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

Access the underlying Parser

Access the underlying Parser

Insert a Unicode chunk in the middle of the byte stream.

This is e.g. for supporting document.write.

Trait Implementations

impl<Sink: TreeSink> TendrilSink<Bytes> for BytesParser<Sink>
[src]

Process this tendril.

Indicates that an error has occurred.

What the overall result of processing is.

Indicates the end of the stream.

Process one tendril and finish.

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

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

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