Skip to content
New issue

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

Implement Clone for SubCaptureMatches #689

Closed
wants to merge 1 commit into from

Conversation

@benesch
Copy link
Contributor

@benesch benesch commented Jun 6, 2020

Similar to BurntSushi/rust-csv#204, consider this a proposal more than anything else. Not sure if there are edge cases I haven't considered. I poked around but didn't see any former discussions/issues about this.

Clonable iterators are useful when writing code that is generic over
iterators that needs to be able to iterate twice.

Clonable iterators are useful when writing code that is generic over
iterators that needs to be able to iterate twice.
BurntSushi added a commit that referenced this pull request Oct 11, 2020
This is useful in a generic context when you want to iterate over
something twice. There's not much reason to not do it at least.

Closes #689
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant