opt_reduce 1.0.0

`reduce` function for `Option<_>`
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented2 out of 3 items with examples
  • Size
  • Source code size: 6.28 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 113.13 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • WaffleLapkin/opt_reduce
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • WaffleLapkin

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+.