Crate somok

Crate somok 

Source
Expand description

§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()
}

Enums§

Either
Enum representing either of two options
Ternary
Enum representing partitioning choice in PartitionThree

Traits§

CondPop
Convinience method for conditionally popping from a collection
Leaksome
Postfix notation for leaking the box
PartitionThree
Trait providing method analogous to Iterator::partition but resulting in three distinct groupings
Somok
Postfix wrapping in Result and Option
TryRemove
Fallible remove() alternative for Vec