Struct kuchiki::NodeDataRef[][src]

pub struct NodeDataRef<T> { /* fields omitted */ }

Holds a strong reference to a node, but dereferences to some component inside of it.

Methods

impl<T> NodeDataRef<T>
[src]

Create a NodeDataRef for a component in a given node.

Create a NodeDataRef for and a component that may or may not be in a given node.

Access the corresponding node.

impl NodeDataRef<ElementData>
[src]

Return the concatenation of all text nodes in this subtree.

Trait Implementations

impl<T: Eq> Eq for NodeDataRef<T>
[src]

impl<T> Deref for NodeDataRef<T>
[src]

The resulting type after dereferencing.

Important traits for &'a mut R

Dereferences the value.

impl<T> PartialEq for NodeDataRef<T>
[src]

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

This method tests for !=.

impl<T> Clone for NodeDataRef<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for NodeDataRef<T>
[src]

Formats the value using the given formatter. Read more

impl Element for NodeDataRef<ElementData>
[src]

Converts self into an opaque representation.

Returns whether the element is an HTML element.

Whether the parent node of this element is a shadow root.

The host of the containing shadow root, if any.

Skips non-element nodes

Skips non-element nodes

Returns whether this element matches :empty. Read more

Returns whether this element matches :root, i.e. whether it is the root element of a document. Read more

Empty string for no namespace

Whether this element is a link.

The parent of a given pseudo-element, after matching a pseudo-element selector. Read more

Returns the assigned element this element is assigned to. Read more

Returns whether this element should ignore matching nth child selector. Read more

Auto Trait Implementations

impl<T> !Send for NodeDataRef<T>

impl<T> !Sync for NodeDataRef<T>