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
impl<Handle, Sink> XmlTreeBuilder<Handle, Sink> where
Handle: Clone,
Sink: TreeSink<Handle = Handle>,
impl<Handle, Sink> XmlTreeBuilder<Handle, Sink> where
Handle: Clone,
Sink: TreeSink<Handle = Handle>,
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
impl<Handle, Sink> TokenSink for XmlTreeBuilder<Handle, Sink> where
Handle: Clone,
Sink: TreeSink<Handle = Handle>,
impl<Handle, Sink> TokenSink for XmlTreeBuilder<Handle, Sink> where
Handle: Clone,
Sink: TreeSink<Handle = Handle>,
Process a token.
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