Expand description
Converts a flat tree
to a string.
§Usage
ⓘ
extern crate print_flat_tree;
use print_flat_tree::fmt;
let tree = vec!(0, 1, 2, 3, 7, 8, 9, 10);
print!("{}", fmt(tree));
Which outputs:
0──┐
1──┐
2──┘ │
3──┐
│
│
│
7
8──┐
9
10──┘
§Command Line
print-flat-tree
Converts a flat-tree to a string
USAGE:
print-flat-tree [tree]...
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
ARGS:
<tree>... For example '0 1 2 3 7 8 9 10'
As can be seen from the above diagram 7
is the parent of 3
, and 3
is
the parent of 1
etc.
§See Also
Functions§
- fmt
- Converts a
flat_tree
to a string.