#replace #nullable #option-result-t #result-option-t

no-std nullable-result

A replacement for Option<Result<T, E>> or Result<Option<T>, E>

7 releases (breaking)

0.7.0 Dec 3, 2021
0.6.0 Nov 10, 2021
0.5.0 Nov 8, 2021
0.4.0 Nov 5, 2021
0.1.0 Sep 30, 2021

#1813 in Rust patterns

33 downloads per month
Used in 2 crates

MIT license

25KB
558 lines

Nullable Result

A replacement for Option<Result<T, E>> or Result<Option<T>, E>.

Read the documentation on docs.rs.


lib.rs:

Contents

  • [NullableResult] - the core of this crate
  • the [extract] macro - early return from functions ?-style
  • iterator extension - additional methods for iterators over [NullableResult]
  • general iterator extension - additional methods for all iterators
  • [MaybeTryFrom] and [MaybeTryInto] - analogues of [TryFrom] and [TryInto]

No runtime deps

Features