#nested #options #invert #dealing #helper #type #extension

result

Helpers for dealing with nested Result and Option types

2 releases (1 stable)

Uses old Rust 2015

1.0.0 Nov 19, 2017
0.0.1 Jul 15, 2016

#2054 in Rust patterns

Download history 20398/week @ 2024-07-19 22596/week @ 2024-07-26 23412/week @ 2024-08-02 21386/week @ 2024-08-09 23437/week @ 2024-08-16 21001/week @ 2024-08-23 23175/week @ 2024-08-30 22300/week @ 2024-09-06 23319/week @ 2024-09-13 25537/week @ 2024-09-20 20644/week @ 2024-09-27 21946/week @ 2024-10-04 21524/week @ 2024-10-11 19717/week @ 2024-10-18 19095/week @ 2024-10-25 19970/week @ 2024-11-01

85,399 downloads per month
Used in 40 crates (5 directly)

MIT license

5KB
56 lines

result-rs

travis-badge release-badge docs-badge license-badge

result provides helpers for dealing with nested Result types.

result provides helpers for dealing with nested Result and Option types. Convert an Option<Result<T, E>> to Result<Option<T>, E> and vice versa.

Documentation

See the documentation for up to date information.


lib.rs:

Helpers for dealing with nested Result and Option types. Convert a Option<Result<T, E>> to Result<Option<T>, E> and vice versa.

use result::prelude::* is recommended in order to import the extension traits into scope.

No runtime deps