Skip to content
/ insideout Public

Wrap composed types inside-out (library for Rust)

Notifications You must be signed in to change notification settings

dpc/insideout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

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.

About

Wrap composed types inside-out (library for Rust)

Resources

Stars

Watchers

Forks

Packages

No packages published