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
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g. crates.io) dependencies
#
# If you believe there's an error in this file please file an
# issue against the rust-lang/cargo repository. If you're
# editing this file be aware that the upstream Cargo.toml
# will likely look very different (and much more reasonable)

[package]
name = "imply_option"
version = "0.1.1"
authors = ["Dynisious <daniel.bechaz@gmail.com>"]
include = ["**/*.rs", "Cargo.toml"]
description = "An implementation of [this RFC](https://github.com/rust-lang/rfcs/pull/2180).\n\nProvides a single `trait` which allows the construction of an `Option` based on a bool value.\n```\nextern crate imply_option;\n\nuse imply_option::*;\n\nfn main() {\n    let pass = true;\n\n    assert_eq!(pass.then(1), Some(1));\n    assert_eq!(pass.then_do(|| 1), Some(1));\n\n    let fail = false;\n\n    assert_eq!(fail.then(1), None);\n}\n```"
keywords = ["option", "utility", "no-std"]
license = "0BSD"
repository = "https://github.com/Dynisious/imply_option"