Struct rquery::Element [] [src]

pub struct Element { /* fields omitted */ }

Represents a single element in the DOM tree.

Methods

impl Element
[src]

Searches the elements children for elements matching the given CSS selector.

Just like select_all but only returns the first match.

Returns an iterator over the element’s direct children.

Returns an iterator over all the element’s children, including indirect child elements.

Returns the size of the DOM subtree, including the current element.

Returns the name of the element’s tag.

Returns the value of the element attribute if found.

Returns the text contained within the element.

Returns true if the element matches the given selector.

Trait Implementations

impl Clone for Element
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Element
[src]

Formats the value using the given formatter.