opt_reduce

Crates.ioopt_reduce
lib.rsopt_reduce
version1.0.0
sourcesrc
created_at2021-07-17 11:31:09.871918
updated_at2021-07-17 11:31:09.871918
description`reduce` function for `Option<_>`
homepagehttps://github.com/WaffleLapkin/opt_reduce/
repositoryhttps://github.com/WaffleLapkin/opt_reduce/
max_upload_size
id424031
size6,286
Waffle Maybe (WaffleLapkin)

documentation

https://docs.rs/opt_reduce/

README

opt_reduce

crates.io documentation (docs.rs) LICENSE (MIT)

This crate provides a reduce function for Option<_> that allows to merge two options together.

This method was previously proposed for addition to std two times but both PRs were closed:

  1. #84695
  2. #87036

opt_reduce = "1"

Compiler support: requires rustc 1.31+.

Commit count: 3

cargo fmt