Struct evco::gp::tree::BoxTree [] [src]

pub struct BoxTree<T>(_)
where
    T: Tree
;

Box Wrapper for implementations of Tree.

Methods

impl<T> BoxTree<T> where
    T: Tree
[src]

Extract the internal Tree.

Count the number of nodes below this node in the tree.

Get a clone of a particular value.

Traverse the tree with the ability to mutate nodes in-place.

The callback receives a mutable pointer to the current node, the 0-based current iteration count, and the 0-based current depth in the tree.

Traverse the tree until the function returns false.

The callback receives a mutable pointer to the current node, the 0-based current iteration count, and the 0-based current depth in the tree.

The callback returns a bool. If false the loop terminates.

Traverse the tree building up a return value, with the ability to mutate nodes in-place.

The callback receives the value being built up, a mutable pointer to the current node, the 0-based current iteration count, and the 0-based current depth in the tree.

Traverse the tree building up a return value, with the ability to mutate nodes in-place.

The callback receives the value being built up, a mutable pointer to the current node, the 0-based current iteration count, and the 0-based current depth in the tree.

The callback returns a pair of (bool, fold_value). If false the loop terminates.

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

This method tests for !=.

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

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

Make BoxTree invisible in Debug output. At the cost of a little invisibility this makes Trees far more readable.

Formats the value using the given formatter.

impl<T> Display for BoxTree<T> where
    T: Tree + Display
[src]

Formats the value using the given formatter. Read more

impl<T> Deref for BoxTree<T> where
    T: Tree
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<T> DerefMut for BoxTree<T> where
    T: Tree
[src]

The method called to mutably dereference a value

impl<T> From<T> for BoxTree<T> where
    T: Tree
[src]

Performs the conversion.