#result #wrap #type #options #iterator #eg #composed

insideout

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

2 unstable releases

Uses old Rust 2015

0.2.0 Nov 27, 2018
0.1.0 Nov 19, 2017

#10 in #eg

Download history 23/week @ 2024-07-19 69/week @ 2024-07-26 83/week @ 2024-08-02 64/week @ 2024-08-09 46/week @ 2024-08-16 32/week @ 2024-08-23 65/week @ 2024-08-30 90/week @ 2024-09-06 57/week @ 2024-09-13 56/week @ 2024-09-20 36/week @ 2024-09-27 28/week @ 2024-10-04 18/week @ 2024-10-11 15/week @ 2024-10-18 12/week @ 2024-10-25 14/week @ 2024-11-01

60 downloads per month
Used in 2 crates

MPL-2.0/MIT/Apache-2.0

5KB

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