create_tree_recursive

Function create_tree_recursive 

Source
fn create_tree_recursive(
    result: &mut RenderTree,
    plan: &dyn ExecutionPlan,
    x: usize,
    y: usize,
) -> usize
Expand description

Recursively builds the render tree structure. Traverses the execution plan and creates corresponding render nodes while maintaining proper positioning and parent-child relationships.

§Arguments

  • result - The render tree being constructed
  • plan - Current execution plan node being processed
  • x - Horizontal position in the tree
  • y - Vertical position in the tree

§Returns

  • The width of the subtree rooted at the current node