Struct html2md::RcDom

source ·
pub struct RcDom {
    pub document: Rc<Node>,
    pub errors: Vec<Cow<'static, str>, Global>,
    pub quirks_mode: QuirksMode,
}
Expand description

The DOM itself; the result of parsing.

Fields§

§document: Rc<Node>

The Document itself.

§errors: Vec<Cow<'static, str>, Global>

Errors that occurred during parsing.

§quirks_mode: QuirksMode

The document’s quirks mode.

Trait Implementations§

Returns the “default value” for a type. Read more
The overall result of parsing. Read more
Consume this sink and return the overall result of parsing. Read more
Handle is a reference to a DOM node. The tree builder requires that a Handle implements Clone to get another reference to the same node. Read more
Signal a parse error.
Get a handle to the Document node.
Get a handle to a template’s template contents. The tree builder promises this will never be called with something else than a template element. Read more
Set the document’s quirks mode.
Do two handles refer to the same node?
What is the name of this element? Read more
Create an element. Read more
Create a comment node.
Create a Processing Instruction node.
Append a node as the last child of the given node. If this would produce adjacent sibling text nodes, it should concatenate the text instead. Read more
Append a node as the sibling immediately before the given node. Read more
When the insertion point is decided by the existence of a parent node of the element, we consider both possibilities and send the element which will be used if a parent node exists, along with the element to be used if there isn’t one. Read more
Append a DOCTYPE element to the Document node.
Add each attribute to the given element, if no attribute with that name already exists. The tree builder promises this will never be called with something else than an element. Read more
Detach the given node from its parent.
Remove all the children from node and append them to new_parent.
Returns true if the adjusted current node is an HTML integration point and the token is a start tag. Read more
Mark a HTML <script> as “already started”.
Indicate that a node was popped off the stack of open elements.
Associate the given form-associatable element with the form element
Called whenever the line number changes.
Indicate that a script element is complete.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.