pub fn assert_integrity(&self) {
        match *self {
            Node::Leaf(_) => {}
            Node::Internal(ref children) => {
                for (info, node) in children.iter() {
                    if *info != node.text_info() {
                        assert_eq!(*info, node.text_info());
                    }
                    node.assert_integrity();
                }
            }
        }
    }
/// Debugging tool to make sure that all of the meta-data of the
/// tree is consistent with the actual data.
Debugging tool to make sure that all of the meta-data of the
tree is consistent with the actual data.
Debugging tool to make sure that all of the meta - data of the tree is consistent with the actual data .
pub fn assert_integrity(&self) {
        match *self {
            Node::Leaf(_) => {}
            Node::Internal(ref children) => {
                for (info, node) in children.iter() {
                    if *info != node.text_info() {
                        assert_eq!(*info, node.text_info());
                    }
                    node.assert_integrity();
                }
            }
        }
    }
pub fn assert_integrity ( & self ) { match * self { Node :: Leaf ( _ ) => { } Node :: Internal ( ref children ) => { for ( info , node ) in children . iter ( ) { if * info != node . text_info ( ) { assert_eq ! ( info node text_info ( ) ) ; } node . assert_integrity ( ) ; } } } }
Debugging tool to make sure that all of the meta-data of the
tree is consistent with the actual data.
Debugging tool to make sure that all of the meta - data of the tree is consistent with the actual data .
&self