Skip to main content

print_tree

Function print_tree 

Source
pub fn print_tree(tree: &BTreeMap<String, Box<Tree>>, depth: usize)
Expand description

Prints the tree structure with indentation based on depth (RECURSIVE VERSION)

ยงArguments

  • tree - The tree to print
  • depth - Current depth level for indentation