pub fn gather_points_and_rebuild(&mut self) {
        let original = core::mem::replace(self, Self::empty());
        let mut points: Vec<_> = original.into_iter().collect();

        self.rebuild_tree(&mut points);
    }
/// Can be used if you are sure that the tree is degenerated or if you will never again insert the nodes into the tree.
Can be used if you are sure that the tree is degenerated or if you will never again insert the nodes into the tree.
Can be used if you are sure that the tree is degenerated or if you will never again insert the nodes into the tree .
pub fn gather_points_and_rebuild(&mut self) {
        let original = core::mem::replace(self, Self::empty());
        let mut points: Vec<_> = original.into_iter().collect();
        self.rebuild_tree(&mut points);
    }
pub fn gather_points_and_rebuild ( & mut self ) { let original = core :: mem :: replace ( self , Self :: empty ( ) ) ; let mut points : Vec < _ > = original . into_iter ( ) . collect ( ) ; self . rebuild_tree ( & mut points ) ; }
Can be used if you are sure that the tree is degenerated or if you will never again insert the nodes into the tree.
Can be used if you are sure that the tree is degenerated or if you will never again insert the nodes into the tree .
&mut self
&mut self