pub fn shift_nodes(&mut self, shift: i32) {
        for node in &mut self.nodes {
            node.update_children(|id| Id::from((usize::from(id) as i32 + shift) as usize));
        }
    }
/// helper fn to shift add the Ids by a certain amount
helper fn to shift add the Ids by a certain amount
helper fn to shift add the Ids by a certain amount
pub fn shift_nodes(&mut self, shift: i32) {
        for node in &mut self.nodes {
            node.update_children(|id| Id::from((usize::from(id) as i32 + shift) as usize));
        }
    }
pub fn shift_nodes ( & mut self , shift : i32 ) { for node in & mut self . nodes { node . update_children ( | id | Id :: from ( ( usize :: from ( id ) as i32 + shift ) as usize ) ) ; } }
helper fn to shift add the Ids by a certain amount
helper fn to shift add the Ids by a certain amount
&mut self
shift
i32
&mut self
shift
i32