debug_tree 0.4.0

Build a tree one element at a time and output it as a pretty string.
Documentation
1
2
3
4
5
6
7
8
use debug_tree::*;
fn main() {
    // output to file at the end of this block
    defer_write!("examples/out/multi_line.txt");
    add_branch!("1");
    add_leaf!("1.1\nAnother line...\n... and one more line");
    add_leaf!("1.2");
}