Some To Err
This crate offers a pair of traits for effortlessly transforming Option into Result, elegantly converting Some values into Err while gracefully handling None values as Ok. Unleash the full potential of Rust's error handling capabilities with these versatile traits.
Usage
Add this to your crate by:
Or add this to your Cargo.toml:
[]
= "0.2.0"
and then:
use ErrOr;
License
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)