impl FromParallelIterator for tuple pairs#802
Conversation
|
It's a composition. |
|
I see. |
|
I finally got around to adding doc-examples for this. |
|
I think this will not get accepted in the stdlib, right? |
I expect not, but I haven't even proposed it yet. I think given how And I do think it's still justified here, because it's otherwise really hard to collect multiple things in parallel. With serial |
|
That makes sense. |
|
I'd be r+ on landing this. |
|
bors r=nikomatsakis |
Like #604 for
ParallelExtend, implementingFromParallelIteratorfor tuple pairs opens up new possibilities for nestingcollect. The possibility of short-circuiting intoResult<(T, U), E>for #801 is particularly motivating.FromParallelIterator<(A, B)> for (FromA, FromB)works likeunzipFromParallelIterator<Either<L, R>> for (A, B)works likepartition_map