Struct xml5ever::tokenizer::XmlTokenizerOpts
source · pub struct XmlTokenizerOpts {
pub exact_errors: bool,
pub discard_bom: bool,
pub profile: bool,
pub initial_state: Option<XmlState>,
}
Expand description
Copy of 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<XmlState>
Initial state override. Only the test runner should use
a non-None
value!
Trait Implementations§
source§impl Clone for XmlTokenizerOpts
impl Clone for XmlTokenizerOpts
source§fn clone(&self) -> XmlTokenizerOpts
fn clone(&self) -> XmlTokenizerOpts
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 XmlTokenizerOpts
impl Default for XmlTokenizerOpts
source§fn default() -> XmlTokenizerOpts
fn default() -> XmlTokenizerOpts
Returns the “default value” for a type. Read more
impl Copy for XmlTokenizerOpts
Auto Trait Implementations§
impl Freeze for XmlTokenizerOpts
impl RefUnwindSafe for XmlTokenizerOpts
impl Send for XmlTokenizerOpts
impl Sync for XmlTokenizerOpts
impl Unpin for XmlTokenizerOpts
impl UnwindSafe for XmlTokenizerOpts
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