We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
peeking_next_map
I would like to have a method on "peekable" iterators with roughly the following signature and behavior similar to PeekingNext::peeking_next:
PeekingNext::peeking_next
fn peeking_next_map(&mut self, parse: impl FnOnce(&Self::Item) -> Option<B>) -> Option<B>;
This would allow, for example, peeking for multiple kinds of opening delimiters at once and getting one back "parsed" and not just "validated".
Since such a method can be implemented in terms of a peek (or put_back) method as well, it might make sense to combine this with #679.
peek
put_back
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I would like to have a method on "peekable" iterators with roughly the following signature and behavior similar to
PeekingNext::peeking_next
:This would allow, for example, peeking for multiple kinds of opening delimiters at once and getting one back "parsed" and not just "validated".
Since such a method can be implemented in terms of a
peek
(orput_back
) method as well, it might make sense to combine this with #679.The text was updated successfully, but these errors were encountered: