#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

#13 in #eg

Download history 6/week @ 2023-12-09 14/week @ 2023-12-16 15/week @ 2023-12-23 20/week @ 2024-01-06 29/week @ 2024-01-13 27/week @ 2024-01-20 117/week @ 2024-01-27 32/week @ 2024-02-03 58/week @ 2024-02-10 191/week @ 2024-02-17 114/week @ 2024-02-24 131/week @ 2024-03-02 97/week @ 2024-03-09 27/week @ 2024-03-16 27/week @ 2024-03-23

299 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