Struct indextree::NodeId[][src]

pub struct NodeId { /* fields omitted */ }

A node identifier within a particular Arena

Methods

impl NodeId
[src]

Create a NodeId used for attempting to get Nodes references from an Arena.

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. success.

Remove a node from the arena. Available children of the removed node will be append to the parent after the previous sibling if available.

Please note that the node will not be removed from the internal arena storage, but marked as removed. Traversing the arena returns a the plain iterator and contains removed elements too.

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 PartialOrd for NodeId
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for NodeId
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

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 Hash for NodeId
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for NodeId
[src]

Formats the value using the given formatter. Read more

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