Struct rinutil::idtree::NodeId[][src]

pub struct NodeId { /* fields omitted */ }

A node identifier within a particular Arena.

Methods

impl NodeId
[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.

Detach a node from its parent and siblings. Children are not affected.

Append a new child to this node, after existing children.

Prepend a new child to this node, before existing children.

Insert a new sibling after this node.

Insert a new sibling before this node.

Trait Implementations

impl PartialEq for NodeId
[src]

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

This method tests for !=.

impl Eq for NodeId
[src]

impl Copy for NodeId
[src]

impl Clone for NodeId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for NodeId
[src]

Formats the value using the given formatter. Read more

impl<T> From<Node<T>> for NodeId
[src]

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

impl<T> Index<NodeId> for Arena<T>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<T> IndexMut<NodeId> for Arena<T>
[src]

Performs the mutable indexing (container[index]) operation.

Auto Trait Implementations

impl Send for NodeId

impl Sync for NodeId