]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #47193 - cramertj:result-opts, r=TimNN
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 20 Jan 2018 21:32:42 +0000 (22:32 +0100)
committerGitHub <noreply@github.com>
Sat, 20 Jan 2018 21:32:42 +0000 (22:32 +0100)
Add transpose conversions for nested Option and Result

These impls are useful when working with combinator
methods that expect an option or a result, but you
have a `Result<Option<T>, E>` instead of an `Option<Result<T, E>>`
or vice versa.

1  2 
src/libcore/option.rs

Simple merge