Struct compt::Zip [] [src]

pub struct Zip<T1: CTreeIterator, T2: CTreeIterator> { /* fields omitted */ }

Tree visitor that zips up two seperate visitors. If one of the iterators returns None for its children, this iterator will return None.

Trait Implementations

impl<T1: CTreeIterator, T2: CTreeIterator> CTreeIterator for Zip<T1, T2>
[src]

[src]

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

[src]

Combine two tree visitors.

[src]

Provides an iterator that returns each element in bfs order. A callback version is not provided because a queue would still need to be used, So it wouldnt be able to take advantage of the stack anyway. Read more

[src]

Provides a dfs preorder iterator. Unlike the callback version, This one relies on dynamic allocation for its queue. Read more

[src]

Calls the closure in dfs preorder (left,right,root). Takes advantage of the callstack to do dfs. Read more

[src]

Calls the closure in dfs postorder (right,left,root). Takes advantage of the callstack to do dfs. Read more