[][src]Struct html5ever::tokenizer::Tokenizer

pub struct Tokenizer<Sink> {
    pub sink: Sink,
    // some fields omitted
}

The HTML tokenizer.

Fields

sink: Sink

Destination for tokens we emit.

Methods

impl<Sink: TokenSink> Tokenizer<Sink>[src]

pub fn new(sink: Sink, opts: TokenizerOpts) -> Tokenizer<Sink>[src]

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

pub fn feed(&mut self, input: &mut BufferQueue) -> TokenizerResult<Sink::Handle>[src]

Feed an input string into the tokenizer.

pub fn set_plaintext_state(&mut self)[src]

impl<Sink: TokenSink> Tokenizer<Sink>[src]

pub fn end(&mut self)[src]

Indicate that we have reached the end of the input.

Auto Trait Implementations

impl<Sink> !Send for Tokenizer<Sink>

impl<Sink> !Sync for Tokenizer<Sink>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]