Trait compt::FixedDepthVisitor[][src]

pub unsafe trait FixedDepthVisitor: Visitor {
    fn get_height(&self) -> usize { ... }
}
Expand description

If implemented, then the level_remaining_hint must return the exact height of the tree. If this is implemented, then the exact number of nodes that will be returned by a dfs or bfs traversal is known so those iterators can implement TrustedLen in this case.

Provided methods

Implementors