Struct html5tokenizer::TokenizerOpts[][src]

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>,
}
Expand description

Tokenizer options, with an impl for Default.

Fields

exact_errors: bool

Report all parse errors described in the spec, at some performance penalty? Defaults to false, except when the spans feature is enabled in which case it defaults to true.

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!

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.