Skip to content

Commit

Permalink
feat: EagerParseIter::segments
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub committed Oct 8, 2024
1 parent 42b17d7 commit d862d97
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/iter/eager_parse_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ where
pub fn iter(
&'a self,
) -> EagerParseIter<<&'a SegmentContainer::Target as IntoIterator>::IntoIter> {
EagerParseIter(self.container.into_iter())
EagerParseIter(self.segments())
}

pub fn segments(&'a self) -> <&'a SegmentContainer::Target as IntoIterator>::IntoIter {
self.container.into_iter()
}
}

0 comments on commit d862d97

Please sign in to comment.