pub struct Tokenizer<Sink> {
    pub sink: Sink,
    /* private fields */
}
Expand description

The HTML tokenizer.

Fields

sink: Sink

Destination for tokens we emit.

Implementations

Create a new tokenizer which feeds tokens to a particular TokenSink.

Feed an input string into the tokenizer.

Indicate that we have reached the end of the input.

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.