Struct rquery::Element [] [src]

pub struct Element { /* fields omitted */ }

Represents a single element in the DOM tree.

Methods

impl Element
[src]

[src]

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

[src]

Just like select_all but only returns the first match.

[src]

Returns an iterator over the element’s direct children.

[src]

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

[src]

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

[src]

Returns the name of the element’s tag.

[src]

Returns the value of the element attribute if found.

[src]

Returns the text contained within the element.

[src]

Returns true if the element matches the given selector.

[src]

Returns the node index for the element.

Trait Implementations

impl Clone for Element
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Element
[src]

[src]

Formats the value using the given formatter.