pub(crate) fn no_dangling_refs(&self) -> bool {
        let mut refs_to_check = vec![self.root_address];
        while let Some(node_addr) = refs_to_check.pop() {
            if self
                .get_node_and(node_addr, |n| {
                    match n.children() {
                        None => {}
                        Some((nested_scale, other_children)) => {
                            refs_to_check.push((nested_scale, node_addr.1));
                            refs_to_check.extend(&other_children[..]);
                        }
                    };
                })
                .is_none()
            {
                return false;
            }
        }
        true
    }
/// Checks that there are no node addresses in the child list of any node that don't reference a node in the tree. 
/// Please calmly panic if there are, the tree is very invalid.
Checks that there are no node addresses in the child list of any node that don't reference a node in the tree.
Please calmly panic if there are, the tree is very invalid.
Checks that there are no node addresses in the child list of any node that don ' t reference a node in the tree . Please calmly panic if there are the tree is very invalid .
pub(crate) fn no_dangling_refs(&self) -> bool {
        let mut refs_to_check = vec![self.root_address];
        while let Some(node_addr) = refs_to_check.pop() {
            if self
                .get_node_and(node_addr, |n| {
                    match n.children() {
                        None => {}
                        Some((nested_scale, other_children)) => {
                            refs_to_check.push((nested_scale, node_addr.1));
                            refs_to_check.extend(&other_children[..]);
                        }
                    };
                })
                .is_none()
            {
                return false;
            }
        }
        true
    }
pub ( crate ) fn no_dangling_refs ( & self ) -> bool { let mut refs_to_check = vec ! [ self root_address ] ; while let Some ( node_addr ) = refs_to_check . pop ( ) { if self . get_node_and ( node_addr , | n | { match n . children ( ) { None => { } Some ( ( nested_scale , other_children ) ) => { refs_to_check . push ( ( nested_scale , node_addr . 1 ) ) ; refs_to_check . extend ( & other_children [ .. ] ) ; } } ; } ) . is_none ( ) { return false ; } } true }
Checks that there are no node addresses in the child list of any node that don't reference a node in the tree.
Checks that there are no node addresses in the child list of any node that don ' t reference a node in the tree .
&self
&self