Skip to main content

get_visible_paths

Function get_visible_paths 

Source
pub fn get_visible_paths<T>(
    nodes: &[TreeNode<T>],
    state: &TreeViewState,
) -> Vec<Vec<usize>>
Expand description

Gets all visible paths (flattened tree with expansion state).

Returns paths for all nodes that are currently visible, respecting the expansion state of parent nodes.

§Arguments

  • nodes - The tree nodes
  • state - The tree view state (for expansion info)

§Returns

A vector of paths (each path is a Vec<usize>) for all visible nodes.