#option #result #inside-out

insideout

Wrap composed types inside-out (eg. Result<Option<T>, E> or Option<Result<T,E>>

2 unstable releases

0.2.0 Nov 27, 2018
0.1.0 Nov 19, 2017

#8 in #result

Download history 21/week @ 2019-08-03 8/week @ 2019-08-10 147/week @ 2019-08-17 189/week @ 2019-08-24 147/week @ 2019-08-31 129/week @ 2019-09-07 205/week @ 2019-09-14 133/week @ 2019-09-21 64/week @ 2019-09-28 61/week @ 2019-10-05 71/week @ 2019-10-12 135/week @ 2019-10-19 117/week @ 2019-10-26

696 downloads per month
Used in 4 crates

MPL-2.0/MIT/Apache-2.0

4KB

Travis CI Build Status dpc on crates.io dpc Gitter Chat

insideout - Wrap composed types inside-out

Turn Option<Result<O, E>> into <Result<Option<O>, E>> and the other way around. Also for Iterators and potentially other types.

Feel free to submit PR for other types where this operation makes sense.

No runtime deps