/// Returns a structured representation-independent view of the node with
/// the specified ID.
Returns a structured representation-independent view of the node with
the specified ID.
Returns a structured representation - independent view of the node with the specified ID .
pub fn view(&self, node_id: NodeId) -> HashTreeView<'_> {
        let idx = node_id.index();
        match node_id.kind() {
            NodeKind::Fork => HashTreeView::Fork(
                &self.fork_digests[idx],
                self.fork_left_children[idx],
                self.fork_right_children[idx],
            ),
            NodeKind::Node => HashTreeView::Node(
                &self.node_digests[idx],
                &self.node_labels[idx],
                self.node_children[idx],
            ),
            NodeKind::Leaf => HashTreeView::Leaf(&self.leaf_digests[idx]),
            NodeKind::Empty => HashTreeView::Empty,
        }
    }
pub fn view ( & self , node_id : NodeId ) -> HashTreeView < ' _ > { let idx = node_id . index ( ) ; match node_id . kind ( ) { NodeKind :: Fork => HashTreeView :: Fork ( & self . fork_digests [ idx ] , self . fork_left_children [ idx ] , self . fork_right_children [ idx ] , ) , NodeKind :: Node => HashTreeView :: Node ( & self . node_digests [ idx ] , & self . node_labels [ idx ] , self . node_children [ idx ] , ) , NodeKind :: Leaf => HashTreeView :: Leaf ( & self . leaf_digests [ idx ] ) , NodeKind :: Empty => HashTreeView :: Empty , } }
Returns a structured representation-independent view of the node with
the specified ID.
Returns a structured representation - independent view of the node with the specified ID .
&self
node_id
NodeId