Struct xml5ever::tree_builder::XmlTreeBuilder[][src]

pub struct XmlTreeBuilder<Handle, Sink> {
    pub sink: Sink,
    // some fields omitted
}
Expand description

The XML tree builder.

Fields

sink: Sink

Consumer of tree modifications.

Implementations

Create a new tree builder which sends tree modifications to a particular TreeSink.

The tree builder is also a TokenSink.

Call the Tracer’s trace_handle method on every Handle in the tree builder’s internal state. This is intended to support garbage-collected DOMs.

Trait Implementations

Process a token.

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. Read more

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

Performs the conversion.

Performs the conversion.

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.