Struct html5ever::tree_builder::TreeBuilderOpts
source · 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§
source§impl Clone for TreeBuilderOpts
impl Clone for TreeBuilderOpts
source§fn clone(&self) -> TreeBuilderOpts
fn clone(&self) -> TreeBuilderOpts
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for TreeBuilderOpts
impl Default for TreeBuilderOpts
source§fn default() -> TreeBuilderOpts
fn default() -> TreeBuilderOpts
Returns the “default value” for a type. Read more
impl Copy for TreeBuilderOpts
Auto Trait Implementations§
impl Freeze for TreeBuilderOpts
impl RefUnwindSafe for TreeBuilderOpts
impl Send for TreeBuilderOpts
impl Sync for TreeBuilderOpts
impl Unpin for TreeBuilderOpts
impl UnwindSafe for TreeBuilderOpts
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)