pub trait TreeVisualizer<T> {
// Required method
fn visualize(&self, tree: &BinarySearchTree<T>) -> Result<String>;
}Expand description
Trait for tree visualizers
Required Methods§
Sourcefn visualize(&self, tree: &BinarySearchTree<T>) -> Result<String>
fn visualize(&self, tree: &BinarySearchTree<T>) -> Result<String>
Generates a visualization of the tree
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".