pub fn insert(&mut self, data: D, volume: V) -> VolumeHandle {
        let index = self.arena.insert(Node {
            parent: None,
            volume,
            content: Content::Leaf(data),
        });
        self.root = Some(match self.root {
            Some(root) => insert(&mut self.arena, root, index),
            None => index,
        });
        VolumeHandle(index)
    }
/// Insert a bounding volume
///
/// It returns an ID that can be u to later remove the volume
Insert a bounding volume
It returns an ID that can be u to later remove the volume
Insert a bounding volume It returns an ID that can be u to later remove the volume
pub fn insert(&mut self, data: D, volume: V) -> VolumeHandle {
        let index = self.arena.insert(Node {
            parent: None,
            volume,
            content: Content::Leaf(data),
        });
        self.root = Some(match self.root {
            Some(root) => insert(&mut self.arena, root, index),
            None => index,
        });
        VolumeHandle(index)
    }
pub fn insert ( & mut self , data : D , volume : V ) -> VolumeHandle { let index = self . arena . insert ( Node { parent : None , volume , content : Content :: Leaf ( data ) , } ) ; self . root = Some ( match self . root { Some ( root ) => insert ( & mut self . arena , root , index ) , None => index , } ) ; VolumeHandle ( index ) }
Insert a bounding volume
It returns an ID that can be u to later remove the volume
Insert a bounding volume It returns an ID that can be u to later remove the volume
&mut self
data
D
volume
V
&mut self
data
D
volume
V