Struct html5ever::serialize::SerializeOpts
source · pub struct SerializeOpts {
pub scripting_enabled: bool,
pub traversal_scope: TraversalScope,
pub create_missing_parent: bool,
}
Fields§
§scripting_enabled: bool
Is scripting enabled? Default: true
traversal_scope: TraversalScope
Serialize the root node? Default: ChildrenOnly
create_missing_parent: bool
If the serializer is asked to serialize an invalid tree, the default
behavior is to panic in the event that an end_elem
is created without a
matching start_elem
. Setting this to true will prevent those panics by
creating a default parent on the element stack. No extra start elem will
actually be written. Default: false
Trait Implementations§
source§impl Clone for SerializeOpts
impl Clone for SerializeOpts
source§fn clone(&self) -> SerializeOpts
fn clone(&self) -> SerializeOpts
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 SerializeOpts
impl Default for SerializeOpts
source§fn default() -> SerializeOpts
fn default() -> SerializeOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SerializeOpts
impl RefUnwindSafe for SerializeOpts
impl Send for SerializeOpts
impl Sync for SerializeOpts
impl Unpin for SerializeOpts
impl UnwindSafe for SerializeOpts
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§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
)