Struct rquery::Document [] [src]

pub struct Document { /* fields omitted */ }

The DOM tree representation of the parsed document.

Methods

impl Document
[src]

[src]

Creates a new document from a byte stream.

[src]

Creates a new document from a string.

[src]

Creates a new document from a file.

[src]

Returns the total number of elements in the document.

[src]

Searches the document for elements matching the given CSS selector.

[src]

Just like select_all but only returns the first match.

Trait Implementations

impl Clone for Document
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Document
[src]

[src]

Formats the value using the given formatter.