somok

Crates.iosomok
lib.rssomok
version1.5.0
sourcesrc
created_at2021-11-09 08:37:55.956659
updated_at2022-03-15 09:55:28.444236
descriptionA microlibrary for postfix Option/Result wrapping
homepage
repositoryhttps://github.com/JohnDowson/somok
max_upload_size
id478790
size5,889
Ivan Chinenov (JohnDowson)

documentation

README

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()
}
Commit count: 10

cargo fmt