Struct rquery::Document [] [src]

pub struct Document { /* fields omitted */ }

The DOM tree representation of the parsed document.

Methods

impl Document
[src]

Creates a new document from a byte stream.

Creates a new document from a string.

Creates a new document from a file.

Returns the total number of elements in the document.

Searches the document for elements matching the given CSS selector.

Just like select_all but only returns the first match.

Trait Implementations

impl Clone for Document
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Document
[src]

Formats the value using the given formatter.