-
Notifications
You must be signed in to change notification settings - Fork 314
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
Support for TryFrom::try_from on the items of iterator #913
Comments
No doubt it's easily doable by copying the code we have for The alternative is |
In general, I'd expect custom map iterators to actually optimize worse, because they can't take advantage of all the specializations in the standard library. For example, So I would say that itertools shouldn't have any of the |
Apart from not making |
Agree with @scottmcm that we shouldn't be adding more trivial shorthands that don't optimize well. We should revisit this decision when In the meantime, I don't think we need to go so far as deprecating |
RPITIT is a great call-out here. If these could be written as just |
It would be nice to have a
map_try_into
similar tomap_into
already implemented (in #288, requested in #280). The signature would be something likeThe text was updated successfully, but these errors were encountered: