

Add a `try_collect()` helper method to `Iterator` by a-lafrance · Pull Request #...
source link: https://github.com/rust-lang/rust/pull/94041
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Implement Iterator::try_collect()
as a helper around Iterator::collect()
as discussed here.
First time contributor so definitely open to any feedback about my implementation! Specifically wondering if I should open a tracking issue for the unstable feature I introduced.
As the main participant in the internals discussion: r? @scottmcm
Recommend
-
9
Add `Iterator::intersperse` #79479 Conversation ...
-
12
0:00 / 2:10 ...
-
10
Copy link Contributor casperisfine ...
-
14
New issue Add a try_reduce method to the Iterator trait #87054
-
5
error: this method is named `iter` but its return type does not implement `Iterator` --> $DIR/iter_not_returning_iterator.rs:50:...
-
13
Copy link FlixCoder commented...
-
7
Collaborator rust-highfive commented
-
4
Collaborator rustbot commented
-
7
Conversation Just a handful of swaps from the by-value cursor to by-ref cursor so as to avoid some un...
-
7
Pull Request Review HelperOptimize pull request reviews and focus on what matters mostThis chrome extension helps you automate your pull request reviews. It generates suggestions...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK