Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wafflelapkin/opt_reduce
Small rust crate that provides `reduce` method for `Option<_>`
https://github.com/wafflelapkin/opt_reduce
Last synced: 3 months ago
JSON representation
Small rust crate that provides `reduce` method for `Option<_>`
- Host: GitHub
- URL: https://github.com/wafflelapkin/opt_reduce
- Owner: WaffleLapkin
- License: mit
- Created: 2021-07-17T10:37:55.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-17T11:20:29.000Z (over 3 years ago)
- Last Synced: 2024-10-10T18:22:25.241Z (3 months ago)
- Language: Rust
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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][first PR]
2. [#87036][second PR][first PR]: https://github.com/rust-lang/rust/pull/84695
[second PR]: https://github.com/rust-lang/rust/pull/87036---
```toml
opt_reduce = "1"
```
_Compiler support: requires rustc 1.31+_.