Skip to content

Commit

Permalink
feat(nodes): make BranchNodeRef::children public
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Nov 3, 2024
1 parent 2fcf5f3 commit 340c778
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nodes/branch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ impl<'a> BranchNodeRef<'a> {
self.stack.len().checked_sub(self.state_mask.count_ones() as usize).unwrap()
}

/// Returns an iterator over children of the branch node.
#[inline]
fn children(&self) -> impl Iterator<Item = (u8, Option<&RlpNode>)> + '_ {
pub fn children(&self) -> impl Iterator<Item = (u8, Option<&RlpNode>)> + '_ {
BranchChildrenIter::new(self)
}

Expand Down

0 comments on commit 340c778

Please sign in to comment.