pub struct TreeBuilderOpts {
    pub exact_errors: bool,
    pub scripting_enabled: bool,
    pub iframe_srcdoc: bool,
    pub drop_doctype: bool,
    pub ignore_missing_rules: bool,
    pub quirks_mode: QuirksMode,
}
Expand description

Tree builder options, with an impl for Default.

Fields

exact_errors: bool

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

scripting_enabled: bool

Is scripting enabled?

iframe_srcdoc: bool

Is this an iframe srcdoc document?

drop_doctype: bool

Should we drop the DOCTYPE (if any) from the tree?

ignore_missing_rules: bool

Obsolete, ignored.

quirks_mode: QuirksMode

Initial TreeBuilder quirks mode. Default: NoQuirks

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.