[]Struct html2md::RcDom

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

The DOM itself; the result of parsing.

Fields

document: Rc<Node>

The Document itself.

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

Errors that occurred during parsing.

quirks_mode: QuirksMode

The document's quirks mode.

Trait Implementations

impl TreeSink for RcDom

type Output = RcDom

The overall result of parsing. Read more

type Handle = Rc<Node>

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

default fn mark_script_already_started(&mut self, _node: &Self::Handle)

Mark a HTML <script> as "already started".

default fn pop(&mut self, _node: &Self::Handle)

Indicate that a node was popped off the stack of open elements.

default fn associate_with_form(
    &mut self,
    _target: &Self::Handle,
    _form: &Self::Handle,
    _nodes: (&Self::Handle, Option<&Self::Handle>)
)

Associate the given form-associatable element with the form element

default fn set_current_line(&mut self, _line_number: u64)

Called whenever the line number changes.

default fn complete_script(&mut self, _node: &Self::Handle) -> NextParserState

Indicate that a script element is complete.

impl Default for RcDom

Auto Trait Implementations

impl !Send for RcDom

impl !Sync for RcDom

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.