Skip to main content

move_sibling

Function move_sibling 

Source
pub fn move_sibling(tree: &mut NodeTree, id: &NodeId, delta: i32) -> Result<()>
Expand description

Shift id by delta slots among its siblings (negative moves up). Out-of-range shifts clamp to the first/last slot; parentless nodes and the root are errors.