render

Function render 

Source
pub fn render<T: Node>(node: &T) -> Vec<String>
Expand description

Renders the given Node in a human-readable format

Here’s an example:

vec![
    String::from("root - selena"),
    String::from("├── child 1 - sam"),
    String::from("│   ├── grandchild 1A - burt"),
    String::from("│   ├── grandchild 1B - crabbod"),
    String::from("│   └── grandchild 1C - mario"),
    String::from("└── child 2 - dumptruck"),
    String::from("    ├── grandchild 2A - tilly"),
    String::from("    └── grandchild 2B - curling iron"),
];