Struct ego_tree::Tree [] [src]

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

Vec-backed ID-tree.

Always contains at least a root node.

Methods

impl<T> Tree<T>
[src]

Important traits for Values<'a, T>
[src]

Returns an iterator over values in insert order.

Important traits for ValuesMut<'a, T>
[src]

Returns a mutable iterator over values in insert order.

Important traits for Nodes<'a, T>
[src]

Returns an iterator over nodes in insert order.

impl<T> Tree<T>
[src]

[src]

Creates a tree with a root node.

[src]

Creates a tree with a root node and the specified capacity.

[src]

Returns a reference to the root node.

[src]

Returns a mutator of the root node.

[src]

Creates an orphan node.

[src]

Returns a reference to the specified node.

[src]

Returns a mutator of the specified node.

Trait Implementations

impl<T> IntoIterator for Tree<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl<T: Clone> Clone for Tree<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for Tree<T>
[src]

[src]

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

[src]

This method tests for !=.

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

impl<T: Hash> Hash for Tree<T>
[src]

[src]

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

1.3.0
[src]

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

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

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for Tree<T> where
    T: Send

impl<T> Sync for Tree<T> where
    T: Sync