An open API service indexing awesome lists of open source software.

https://github.com/dpc/insideout

Wrap composed types inside-out (library for Rust)
https://github.com/dpc/insideout

Last synced: about 1 year ago
JSON representation

Wrap composed types inside-out (library for Rust)

Awesome Lists containing this project

README

          



Travis CI Build Status


dpc on crates.io


dpc Gitter Chat

# insideout - Wrap composed types inside-out

Update: As of 1.33 a functionality like this is available in stdlib (at least for simple type). For iterators you can use `iterator.map(Result::transpose)` or `iterator.map(Option::transpose)` ([thread](https://internals.rust-lang.org/t/transpose-for-iterators/10321/2)).

Turn `Option>` into `, E>>` and the other way around.
Also for `Iterator`s and potentially other types.

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