Struct compt::Wrap
[−]
[src]
pub struct Wrap<'a, T: 'a> { /* fields omitted */ }
Allows to traverse down from a visitor twice by creating a new visitor that borrows the other.
Methods
impl<'a, T: 'a> Wrap<'a, T>
[src]
Trait Implementations
impl<'a, T: 'a> CTreeIterator for Wrap<'a, T>
[src]
type Item = (LevelDesc, &'a mut T)
fn next(self) -> (Self::Item, Option<(Self, Self)>)
[src]
Consume this visitor, and produce the element it was pointing to along with it's children visitors. Read more
fn zip<F: CTreeIterator>(self, f: F) -> ZippedDownTMut<Self, F>
[src]
Combine two tree visitors.
fn dfs_preorder<F: FnMut(Self::Item)>(self, func: F)
[src]
Calls the closure in dfs preorder (left,right,root).
fn dfs_postorder<F: FnMut(Self::Item)>(self, func: F)
[src]
Calls the closure in dfs postorder (right,left,root).