[][src]Struct html5ever::driver::Parser

pub struct Parser<Sink> where
    Sink: TreeSink
{ pub tokenizer: Tokenizer<TreeBuilder<Sink::Handle, Sink>>, pub input_buffer: BufferQueue, }

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

Fields

tokenizer: Tokenizer<TreeBuilder<Sink::Handle, Sink>>input_buffer: BufferQueue

Methods

impl<Sink: TreeSink> Parser<Sink>[src]

pub fn from_utf8(self) -> Utf8LossyDecoder<Self>[src]

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

impl<Sink: TreeSink> TendrilSink<UTF8, NonAtomic> for Parser<Sink>[src]

type Output = Sink::Output

What the overall result of processing is.

Auto Trait Implementations

impl<Sink> !Send for Parser<Sink>

impl<Sink> !Sync for Parser<Sink>

impl<Sink> Unpin for Parser<Sink> where
    Sink: Unpin,
    <Sink as TreeSink>::Handle: Unpin

impl<Sink> UnwindSafe for Parser<Sink> where
    Sink: UnwindSafe,
    <Sink as TreeSink>::Handle: UnwindSafe

impl<Sink> !RefUnwindSafe for Parser<Sink>

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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