Enum scraper::node::Node [] [src]

pub enum Node {
    Document,
    Fragment,
    Doctype(Doctype),
    Comment(Comment),
    Text(Text),
    Element(Element),
    ProcessingInstruction(ProcessingInstruction),
}

An HTML node.

Variants

The document root.

The fragment root.

A doctype.

A comment.

Text.

An element.

A processing instruction.

Methods

impl Node
[src]

[src]

Returns true if node is the document root.

[src]

Returns true if node is the fragment root.

[src]

Returns true if node is a doctype.

[src]

Returns true if node is a comment.

[src]

Returns true if node is text.

[src]

Returns true if node is an element.

[src]

Returns self as a doctype.

[src]

Returns self as a comment.

[src]

Returns self as text.

[src]

Returns self as an element.

[src]

Returns self as an element.

Trait Implementations

impl Clone for Node
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Node
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Node
[src]

impl Debug for Node
[src]

[src]

Formats the value using the given formatter.