pub fn swap_nodes(
root: &mut LayoutNode,
node1_id: &str,
node2_id: &str,
) -> Result<(), LayoutError>Expand description
Swap two nodes (by id). Their sizes travel with them (swap positions but preserve the size each node had). Neither can be the root.