Skip to main content

build_forest

Function build_forest 

Source
pub fn build_forest(tasks: Vec<Task>) -> Vec<TreeNode>
Expand description

Build a forest (collection of trees) from a list of tasks.

Uses parent:* labels to determine hierarchy. Tasks without a parent label are roots. Tasks with a parent label that doesn’t exist in the list are also treated as roots (orphaned children become top-level).