Skip to main content

conspire/geometry/ntree/prune/
mod.rs

1use crate::geometry::ntree::Orthotree;
2
3impl<const D: usize, const L: usize, const M: usize, const N: usize, T, U>
4    Orthotree<D, L, M, N, T, U>
5where
6    T: Copy + Into<usize>,
7{
8    pub fn prune(&mut self) {
9        self.retain(|node| node.is_leaf());
10    }
11}