#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

#14 in #eg

Download history 14/week @ 2024-01-04 26/week @ 2024-01-11 30/week @ 2024-01-18 106/week @ 2024-01-25 44/week @ 2024-02-01 35/week @ 2024-02-08 166/week @ 2024-02-15 141/week @ 2024-02-22 129/week @ 2024-02-29 92/week @ 2024-03-07 55/week @ 2024-03-14 25/week @ 2024-03-21 67/week @ 2024-03-28 54/week @ 2024-04-04 42/week @ 2024-04-11 26/week @ 2024-04-18

190 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