Enum html2md::NodeData[][src]

pub enum NodeData {
    Document,
    Doctype {
        name: Tendril<UTF8, NonAtomic>,
        public_id: Tendril<UTF8, NonAtomic>,
        system_id: Tendril<UTF8, NonAtomic>,
    },
    Text {
        contents: RefCell<Tendril<UTF8, NonAtomic>>,
    },
    Comment {
        contents: Tendril<UTF8, NonAtomic>,
    },
    Element {
        name: QualName,
        attrs: RefCell<Vec<Attribute, Global>>,
        template_contents: Option<Rc<Node>>,
        mathml_annotation_xml_integration_point: bool,
    },
    ProcessingInstruction {
        target: Tendril<UTF8, NonAtomic>,
        contents: Tendril<UTF8, NonAtomic>,
    },
}
Expand description

The different kinds of nodes in the DOM.

Variants

Document

The Document itself - the root node of a HTML document.

Doctype

A DOCTYPE with name, public id, and system id. See document type declaration on wikipedia.

Show fields

Fields of Doctype

name: Tendril<UTF8, NonAtomic>public_id: Tendril<UTF8, NonAtomic>system_id: Tendril<UTF8, NonAtomic>
Text

A text node.

Show fields

Fields of Text

contents: RefCell<Tendril<UTF8, NonAtomic>>
Comment

A comment.

Show fields

Fields of Comment

contents: Tendril<UTF8, NonAtomic>
Element

An element with attributes.

Show fields

Fields of Element

name: QualNameattrs: RefCell<Vec<Attribute, Global>>template_contents: Option<Rc<Node>>

For HTML <template> elements, the template contents.

mathml_annotation_xml_integration_point: bool

Whether the node is a HTML integration point.

ProcessingInstruction

A Processing instruction.

Show fields

Fields of ProcessingInstruction

target: Tendril<UTF8, NonAtomic>contents: Tendril<UTF8, NonAtomic>

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.