#lib #converting #convert #helps #option-e

no-std err_or

Small lib that helps converting Option<E> into Result<_, E>

1 unstable release

Uses old Rust 2015

0.1.0 Dec 8, 2020

#32 in #helps

Custom license

6KB

err_or

CI status documentation (master) documentation (docs.rs) crates.io LICENSE

Rust lib which allows you to convert Option<E> into Result<_, E>.

[dependencies]
err_or = "0.1"

Compiler support: requires rustc 1.7+ (1.0+ if compiled with sfeatures = ["std"])


lib.rs:

This crate adds err_or and err_or_else methods to the Option type which allow converting Option<E> into Result<_, E>.

Those methods were proposed in rust-lang/rust#73040 PR, but it was closed.

This crate is #![no_std] compatible.

No runtime deps

Features