Struct rinutil::idtree::NodeIdRef[][src]

pub struct NodeIdRef<'a, T: 'a> { /* fields omitted */ }

Methods

impl<'a, T: 'a> NodeIdRef<'a, T>
[src]

Important traits for Ancestors<'a, T>

Return an iterator of references to this node and its ancestors.

Call .next().unwrap() once on the iterator to skip the node itself.

Important traits for PrecedingSiblings<'a, T>

Return an iterator of references to this node and the siblings before it.

Call .next().unwrap() once on the iterator to skip the node itself.

Important traits for FollowingSiblings<'a, T>

Return an iterator of references to this node and the siblings after it.

Call .next().unwrap() once on the iterator to skip the node itself.

Important traits for Children<'a, T>

Return an iterator of references to this node’s children.

Important traits for ReverseChildren<'a, T>

Return an iterator of references to this node’s children, in reverse order.

Important traits for Descendants<'a, T>

Return an iterator of references to this node and its descendants, in tree order.

Parent nodes appear before the descendants. Call .next().unwrap() once on the iterator to skip the node itself.

Important traits for Traverse<'a, T>

Return an iterator of references to this node and its descendants, in tree order.

Important traits for ReverseTraverse<'a, T>

Return an iterator of references to this node and its descendants, in tree order.

Methods from Deref<Target = Node<T>>

Return the ID of the parent node, unless this node is the root of the tree.

Return the ID of the first child of this node, unless it has no child.

Return the ID of the last child of this node, unless it has no child.

Return the ID of the previous sibling of this node, unless it is a first child.

Return the ID of the previous sibling of this node, unless it is a first child.

Trait Implementations

impl<'a, T> From<NodeIdRef<'a, T>> for NodeId
[src]

Performs the conversion.

impl<'a, T: 'a> Deref for NodeIdRef<'a, T>
[src]

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

impl<'a, T> Send for NodeIdRef<'a, T> where
    T: Sync

impl<'a, T> Sync for NodeIdRef<'a, T> where
    T: Sync