Creates a new render tree from an execution plan.
(plan: &dyn ExecutionPlan)
| 85 | impl RenderTree { |
| 86 | /// Creates a new render tree from an execution plan. |
| 87 | pub fn create_tree(plan: &dyn ExecutionPlan) -> Self { |
| 88 | let (width, height) = get_tree_width_height(plan); |
| 89 | |
| 90 | let mut result = Self::new(width, height); |
| 91 | |
| 92 | create_tree_recursive(&mut result, plan, 0, 0); |
| 93 | |
| 94 | result |
| 95 | } |
| 96 | |
| 97 | fn new(width: usize, height: usize) -> Self { |
| 98 | RenderTree { |
nothing calls this directly
no test coverage detected