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

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

Fields

scripting_enabled: bool

Is scripting enabled?

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

impl Default for SerializeOpts[src]

impl Clone for SerializeOpts[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]