winnow-rs / winnow

Making parsing a breeze
https://docs.rs/winnow
Other
525 stars 40 forks source link

feat(comb): Make 'fold' a specialization of 'repeat' #442

Closed epage closed 8 months ago

epage commented 8 months ago

This follows our pattern of how you process the data is in a trailing method (compared to the grammar which is a free function).

Our only folds are for repeat and separated. For separated, we also aren't providing ranged versions so the Repeat::fold pattern should be sufficient to guide work on that, so I think its ok to close the issue.

Fixes #441

coveralls commented 8 months ago

Pull Request Test Coverage Report for Build 7731048800


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/combinator/multi.rs 24 34 70.59%
<!-- Total: 24 34 70.59% -->
Totals Coverage Status
Change from base Build 7671180384: 0.03%
Covered Lines: 1314
Relevant Lines: 2977

💛 - Coveralls