Skip to main content

count_items

Function count_items 

Source
pub fn count_items(items: &[OutlineItem]) -> usize
Expand description

Number of outline items in the tree, counting all descendants.

Useful for sanity-checking and for sizing UI widgets without flattening the tree.