imply_option 0.1.1

An implementation of [this RFC](https://github.com/rust-lang/rfcs/pull/2180). Provides a single `trait` which allows the construction of an `Option` based on a bool value. ``` extern crate imply_option; use imply_option::*; fn main() { let pass = true; assert_eq!(pass.then(1), Some(1)); assert_eq!(pass.then_do(|| 1), Some(1)); let fail = false; assert_eq!(fail.then(1), None); } ```
Documentation
Build #105399 2018-06-14T06:09:07.086178+00:00
# rustc version
rustc 1.28.0-dev (b9bf4f162 2018-06-02)
# docs.rs version
cratesfyi 0.5.0 (579f83b 2018-03-05)

# build log
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading imply_option v0.1.1
Documenting imply_option v0.1.1
Running `rustdoc --crate-name imply_option .cargo/registry/src/github.com-1ecc6299db9ec823/imply_option-0.1.1/src/lib.rs -o /home/cratesfyi/cratesfyi/doc -Z unstable-options --resource-suffix -20180602-1.28.0-dev-b9bf4f162 -L dependency=/home/cratesfyi/cratesfyi/debug/deps`
Finished dev [unoptimized + debuginfo] target(s) in 0.15 secs