Registry / utility / insideout

insideout

JSON →
library0.2.0rscratesunverified

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

# Cargo.toml [dependencies] insideout = "0.2.0"
INSTALL
IMPORT
SIG · INSIDEOUT
I
insideout
utilityrustv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

InsideOut
use insideout::InsideOut;

Swaps the nesting of Result and Option.

use insideout::InsideOut; fn main() { let result: Result<Option<i32>, String> = Ok(Some(42)); let swapped: Option<Result<i32, String>> = result.inside_out(); println!("Swapped: {:?}", swapped); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
insideout — cargo add insideout · libregistry