pub trait FixedDepthVisitor: Visitor {
// Provided method
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§
fn get_height(&self) -> usize
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.