]> git.lizzy.rs Git - rust.git/commit
Auto merge of #38580 - shepmaster:result-sum, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 10 Jan 2017 23:25:31 +0000 (23:25 +0000)
committerbors <bors@rust-lang.org>
Tue, 10 Jan 2017 23:25:31 +0000 (23:25 +0000)
commit0500fbf6ba83b9a6634a5e0580963b44683b44c6
tree4a710492a371d35aa8e926f87386f9ea861a06f3
parentd6b927dd91a7f9d32a537f1b4493dfdb3e628823
parent23715d344de0377624be95b48830582594aed7ff
Auto merge of #38580 - shepmaster:result-sum, r=alexcrichton

Implement `iter::Sum` and `iter::Product` for `Result`

This introduces a private iterator adapter `ResultShunt`, which allows
treating an iterator of `Result<T, E>` as an iterator of `T`.