Trait compt::CTreeIterator [] [src]

pub trait CTreeIterator: Sized {
    type Item;
    fn next(self) -> (Self::Item, Option<(Self, Self)>);

    fn zip<F: CTreeIterator>(self, f: F) -> ZippedDownTMut<Self, F> { ... }
fn dfs_preorder<F: FnMut(Self::Item)>(self, func: F) { ... }
fn dfs_postorder<F: FnMut(Self::Item)>(self, func: F) { ... } }

All binary tree visitors implement this.

Associated Types

Required Methods

Consume this visitor, and produce the element it was pointing to along with it's children visitors.

Provided Methods

Combine two tree visitors.

Calls the closure in dfs preorder (left,right,root).

Calls the closure in dfs postorder (right,left,root).

Implementors