Skip to main content

write_branch_tree

Function write_branch_tree 

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

Render a tree using Unicode branch connectors.

The root contains only TreeDisplayAdapter::write_node. Descendants are prefixed with their child name and connectors such as ├── and └──. Detail lines are not rendered in this style.