Useful extensions to convert bool
to other Rust types.
At the moment there are two extensions:
.true_or()
.false_or()
```rust use bool_mappings::BoolMappings;
struct MyError;
// Turn a bool into a Result fn somefn() -> Result<(), MyError> { true.trueor(MyError) }
fn someotherfn() -> Result<(), MyError> { true.false_or(MyError) } ```
License: MIT