pub fn set_left_sibling_status_for_nodes(nodes: Vec<Node>) -> Vec<Node>
Expand description

Updates the position attributes of nodes in a vector.

This function iterates over a vector of nodes, updating each node’s left sibling status based on its index. It’s crucial for correctly setting up the structural properties of the nodes in the tree, especially after modifications that might alter the node order.

§Arguments

  • nodes - A vector of Node elements to update.

§Returns

A Vec<Node> with updated left sibling status for each node.