[][src]Struct html5ever::tokenizer::TokenizerOpts

pub struct TokenizerOpts {
    pub exact_errors: bool,
    pub discard_bom: bool,
    pub profile: bool,
    pub initial_state: Option<State>,
    pub last_start_tag_name: Option<String>,
}

Tokenizer options, with an impl for Default.

Fields

exact_errors: bool

Report all parse errors described in the spec, at some performance penalty? Default: false

discard_bom: bool

Discard a U+FEFF BYTE ORDER MARK if we see one at the beginning of the stream? Default: true

profile: bool

Keep a record of how long we spent in each state? Printed when end() is called. Default: false

initial_state: Option<State>

Initial state override. Only the test runner should use a non-None value!

last_start_tag_name: Option<String>

Last start tag. Only the test runner should use a non-None value!

FIXME: Can't use Tendril because we want TokenizerOpts to be Send.

Trait Implementations

impl Clone for TokenizerOpts[src]

impl Default for TokenizerOpts[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]