Skip to content

Commit

Permalink
feat(nodes): make BranchNodeRef::children public (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin authored Nov 4, 2024
1 parent 2fcf5f3 commit 48b7b65
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 48b7b65

Please sign in to comment.