Struct iodyn::level_tree::Tree [] [src]

pub struct Tree<E: 'static + Debug + Clone + Eq + Hash> { /* fields omitted */ }

A persistent tree with stable, internally defined structure

Methods

impl<E: Debug + Clone + Eq + Hash + 'static> Tree<E>
[src]

build a new tree from components, always succeeds //return None if levels are inconsistent

peek at the level of the root of this tree

peek at the name of the root of this tree

obtain the left subtree if it exists

obtain the right subtree if it exists

peek at the data contained at the top node of the tree

incremental fold operation, from leaves to root

incremental tree fold operation with levels and names

Names passed to the mapping function are USED (as is and forked) in the resulting tree and should not be reused directly for the creation of arts.

incremental fold operation, left to right

incremental fold operation, left to right, with levels and names

Names passed to the mapping function are USED (as is and forked) in the resulting tree and should not be reused directly for the creation of arts.

incremental map operation

because of the possibility of meta data in tree nodes, the mapping function takes all the data of a tree, including refs to subtrees. Names passed to the mapping function are USED in the resulting tree and should not be reused directly for the creation of arts.

Trait Implementations

impl<E: Debug + 'static + Debug + Clone + Eq + Hash> Debug for Tree<E>
[src]

Formats the value using the given formatter.

impl<E: PartialEq + 'static + Debug + Clone + Eq + Hash> PartialEq for Tree<E>
[src]

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

This method tests for !=.

impl<E: Eq + 'static + Debug + Clone + Eq + Hash> Eq for Tree<E>
[src]

impl<E: Hash + 'static + Debug + Clone + Eq + Hash> Hash for Tree<E>
[src]

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

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

impl<E: Debug + Clone + Eq + Hash + 'static> Clone for Tree<E>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more