Struct html5ever::tokenizer::TokenizerOpts
source · 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? 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§
source§impl Clone for TokenizerOpts
impl Clone for TokenizerOpts
source§fn clone(&self) -> TokenizerOpts
fn clone(&self) -> TokenizerOpts
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 TokenizerOpts
impl Default for TokenizerOpts
source§fn default() -> TokenizerOpts
fn default() -> TokenizerOpts
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§
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