Skip to main content

path_to

Function path_to 

Source
fn path_to<'a>(
    node: &'a LayoutNode,
    block_id: &str,
    path: &mut Vec<(&'a LayoutNode, usize)>,
) -> Option<&'a LayoutNode>
Expand description

The nodes from the root down to the pane holding block_id, as (parent, index of the child on the path), and that pane.