Skip to main content

write_indented_tree

Function write_indented_tree 

Source
pub fn write_indented_tree<A: TreeDisplayAdapter>(
    adapter: &A,
    root_name: &str,
    root: &A::Node,
    context: &mut A::Context,
    formatter: &mut Formatter<'_>,
) -> Result
Expand description

Render a named tree using two-space indentation.

Each node is written as name: followed by TreeDisplayAdapter::write_node. Detail lines and child nodes are indented beneath it.