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 the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TokenizerOpts
impl Send for TokenizerOpts
impl Sync for TokenizerOpts
impl Unpin for TokenizerOpts
impl UnwindSafe for TokenizerOpts
Blanket Implementations
Mutably borrows from an owned value. Read more