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

Add IteratorExt for convenient conversion #24

Merged
merged 3 commits into from
May 12, 2023
Merged

Conversation

dpc
Copy link
Collaborator

@dpc dpc commented Feb 1, 2022

I'd like to write all my code in terms of FalliableIterator, but for that I sometimes need to smoothly convert a "normal" iterator. There are generally two ways I'd want to do it. One is introducing a fake error that can never happen, and the other one is transposition. Transposition is always possible with convert but I think it would be handler in an extension trait.

@dpc dpc force-pushed the master branch 2 times, most recently from 035a97d to 3d84cdf Compare February 1, 2022 06:11
@dpc
Copy link
Collaborator Author

dpc commented May 13, 2022

I'll leave it for now until someone tells me if it makes any sense.

@vidhanio
Copy link

That "fake error that can never happen" should probably be Infallible, while waiting for this pr.

@dpc dpc merged commit 3f081ec into sfackler:master May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants