nothing

crates.io Documentation Build Status

This is my own version of Option. Definition:

pub enum Probably<T> { Nothing, Something(T), }

Why?

The point is that you can use [Probably] as the return type of your main function:

``` use nothing::{Probably, Nothing};

fn main() -> Probably<()> { Nothing } ```

Exit code is 0 if it is [Something], 1 if [Nothing].

See ./examples/main.rs

Probably::Nothing

It's probably nothing.