diff --git a/src/nodes/branch.rs b/src/nodes/branch.rs index 2bc84b8..b0036eb 100644 --- a/src/nodes/branch.rs +++ b/src/nodes/branch.rs @@ -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)> + '_ { + pub fn children(&self) -> impl Iterator)> + '_ { BranchChildrenIter::new(self) }