/// Returns the number of blocks in the tree
Returns the number of blocks in the tree
Returns the number of blocks in the tree
pub(super) fn len(&self) -> usize {
        // BFS over the tree to find the number of blocks in the tree.
        let mut res = 0;
        let mut to_visit = Vec::new();
        to_visit.push(Arc::clone(&self.root));
        while let Some(block) = to_visit.pop() {
            res += 1;
            if let Some(children) = self.id_to_child.get(&block.id()) {
                for child in children {
                    to_visit.push(Arc::clone(&child));
                }
            }
        }
        res
    }
pub ( super ) fn len ( & self ) -> usize { // BFS over the tree to find the number of blocks in the tree. let mut res = 0 ; let mut to_visit = Vec :: new ( ) ; to_visit . push ( Arc :: clone ( & self . root ) ) ; while let Some ( block ) = to_visit . pop ( ) { res += 1 ; if let Some ( children ) = self . id_to_child . get ( & block . id ( ) ) { for child in children { to_visit . push ( Arc :: clone ( & child ) ) ; } } } res }
Returns the number of blocks in the tree
Returns the number of blocks in the tree
&self