Skip to main content

build_tree

Function build_tree 

Source
pub fn build_tree(
    pages: &[PageListEntry],
    expanded: &HashSet<String>,
) -> Vec<TreeRow>
Expand description

Build a flattened tree from a list of pages.

expanded is the set of folder paths currently expanded. Returns rows in display order: at each level, folders first (alpha-sorted), then pages (alpha-sorted by title). Only emits children of expanded folders.