Crate opt_reduce
Version 1.0.0
See all opt_reduce's items
This crate provides a reduce function for Option<_> that allows to merge two options together.
reduce
Option<_>
This method was previously proposed for addition to std two times but both PRs were closed:
std
Option<_> extension that adds reduce method to it.
Merges 2 options a and b together.
a
b