10 stable releases

1.5.0 Mar 15, 2022
1.4.0 Mar 15, 2022
1.2.0 Jan 31, 2022
1.1.2 Nov 25, 2021

#2 in #follows

Download history 10/week @ 2024-11-13 16/week @ 2024-11-20 22/week @ 2024-11-27 19/week @ 2024-12-04 82/week @ 2024-12-11 58/week @ 2024-12-18 18/week @ 2024-12-25 20/week @ 2025-01-01 23/week @ 2025-01-08 8/week @ 2025-01-15 13/week @ 2025-01-29 23/week @ 2025-02-05 21/week @ 2025-02-12 43/week @ 2025-02-19 101/week @ 2025-02-26

190 downloads per month
Used in 2 crates (via baker)

MIT license

6KB
101 lines

Somok - postfix Result/Option wrapping

Usage:

Add following to your cargo toml:

somok = "1.0"

Then use postfix wrapping as follows:

use somok::{ Somok, Either };

fn foo() -> Result<Option<Either<String, Vec<u8>>>> {
    String::from("Foobar").left().some().okay()
}

lib.rs:

Somok - postfix Result/Option wrapping

Usage:

Add following to your cargo toml:

somok = "1.0"

Then use postfix wrapping as follows:

use somok::Somok;

fn foo() -> Result<Option<String>> {
    String::from("Foobar").some().okay()
}

No runtime deps