pub trait TreeDisplay {
// Required method
fn tree_print(&self, f: &mut Formatter<'_>, depth: TreeState) -> Result;
}Expand description
Trait for displaying a tree
Required Methods§
Sourcefn tree_print(&self, f: &mut Formatter<'_>, depth: TreeState) -> Result
fn tree_print(&self, f: &mut Formatter<'_>, depth: TreeState) -> Result
Write item into f and use {:depth$} syntax in front of your single line
output to get proper indention.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".