Struct xml5ever::driver::XmlParser

source ·
pub struct XmlParser<Sink>where
    Sink: TreeSink,
{ pub tokenizer: XmlTokenizer<XmlTreeBuilder<Sink::Handle, Sink>>, }
Expand description

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

Fields

tokenizer: XmlTokenizer<XmlTreeBuilder<Sink::Handle, Sink>>

Tokenizer used by XmlParser.

Implementations

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

What the overall result of processing is.
Process this tendril.
Indicates that an error has occurred.
Indicates the end of the stream.
Process one tendril and finish.
Consume an iterator of tendrils, processing each item, then finish.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.