Debug Tree
This library allows you to build a tree one element at a time and output it as a pretty string. This is particularly convenient for generating clean output from nested and recursive functions. A design goal was to allow this library to be used as a drop-in replacement of println!(...)
.
Simple Usage
extern crate debug_tree;
use default_tree;
1 Branch
└╼ 1.1 Child
2 Sibling
Line Breaks
Newlines in multi-line strings are automatically indented.
extern crate debug_tree;
use default_tree;
1
├╼ 1.1
│ Next line
└╼ 1.2
Non-Macro Version
extern crate debug_tree;
use TreeBuilder;
1 Branch
└╼ 1.1 Child
2 Sibling