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
Expand description

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

Doctype
Expand description

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
Expand description

A text node.

Show fields

Fields of Text

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

A comment.

Show fields

Fields of Comment

contents: Tendril<UTF8, NonAtomic>
Element
Expand description

An element with attributes.

Show fields

Fields of Element

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

For HTML <template> elements, the template contents.

mathml_annotation_xml_integration_point: bool
Expand description

Whether the node is a HTML integration point.

ProcessingInstruction
Expand description

A Processing instruction.

Show fields

Fields of ProcessingInstruction

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

Trait Implementations

impl Debug for NodeData[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !RefUnwindSafe for NodeData

impl !Send for NodeData

impl !Sync for NodeData

impl Unpin for NodeData

impl !UnwindSafe for NodeData

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.