Struct html5ever::serialize::SerializeOpts [] [src]

pub struct SerializeOpts {
    pub scripting_enabled: bool,
    pub traversal_scope: TraversalScope,
    pub create_missing_parent: bool,
}

Fields

Is scripting enabled?

Serialize the root node? Default: ChildrenOnly

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

impl Copy for SerializeOpts
[src]

impl Clone for SerializeOpts
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for SerializeOpts
[src]

Returns the "default value" for a type. Read more