about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-08-12 15:32:53 +0900
committerGitHub <noreply@github.com>2021-08-12 15:32:53 +0900
commit688094b868f4ebe344c06ea2ba5b445ebef6ae67 (patch)
tree8182bfdab64565050a0d1ab3bd2474ac56f64ed9 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent25d3e14da77f755ef858b976a25c7e856b62b42a (diff)
parent3d0c5d09d33d74a508965799fcde6e8147cee721 (diff)
downloadrust-688094b868f4ebe344c06ea2ba5b445ebef6ae67.tar.gz
rust-688094b868f4ebe344c06ea2ba5b445ebef6ae67.zip
Rollup merge of #85835 - Seppel3210:master, r=yaahc
Implement Extend<(A, B)> for (Extend<A>, Extend<B>)

I oriented myself at the implementation of `Iterator::unzip` and also rewrote the impl in terms of `(A, B)::extend` after that.

Since (A, B) now also implements Extend we could also mention in the documentation of unzip that it can do "nested unzipping" (you could unzip `Iterator<Item=(A, (B, C))>` into `(Vec<A>, (Vec<B>, Vec<C>))` for example) but I'm not sure of that so I'm asking here 🙂

(P.S. I saw a couple of people asking if there is an unzip3 but there isn't. So this could be a way to get equivalent functionality)
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions