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]

Returns true if node is the document root.

Returns true if node is the fragment root.

Returns true if node is a doctype.

Returns true if node is a comment.

Returns true if node is text.

Returns true if node is an element.

Returns self as a doctype.

Returns self as a comment.

Returns self as text.

Returns self as an element.

Returns self as an element.

Trait Implementations

impl Clone for Node
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Node
[src]

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

This method tests for !=.

impl Eq for Node
[src]

impl Debug for Node
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Node

impl !Sync for Node