[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"