macro_rules! println_tree {
($tree:expr $(,)?) => { ... };
($tree:expr, $style:expr $(,)?) => { ... };
}Expand description
Prints a type that implements DisplayTree to the standard output as a
tree, with a newline.
A Style can be passed as the second argument to customize the way the
tree is formatted.
ยงExamples
use display_tree::println_tree;
println_tree!(tree)Specifying a style:
use display_tree::{println_tree, Style, StyleBuilder};
println_tree!(tree, Style::default().indentation(1));