[][src]Struct html_parser::Dom

pub struct Dom {
    pub tree_type: DomVariant,
    pub children: Vec<Node>,
}

The main struct & the result of the parsed html

Fields

tree_type: DomVariant

The type of the tree that was parsed

children: Vec<Node>

All of the root children in the tree

Implementations

impl Dom[src]

pub fn parse(input: &str) -> Result<Self>[src]

pub fn to_json(&self) -> Result<String>[src]

pub fn to_json_pretty(&self) -> Result<String>[src]

Trait Implementations

impl Debug for Dom[src]

impl Default for Dom[src]

impl Serialize for Dom[src]

Auto Trait Implementations

impl RefUnwindSafe for Dom

impl Send for Dom

impl Sync for Dom

impl Unpin for Dom

impl UnwindSafe for Dom

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.