-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(option): new Option::merge()
method
#425
Conversation
Pull Request Test Coverage Report for Build 6562143288
💛 - Coveralls |
I'm unsure about those mutation test errors. Any change in my branch does not cause them, am I right? |
Looks like a nice feature. Haven't jumped in the code yet, but was thinking about the name in line of |
I was thinking along the lines of using a short name, |
I was looking at the mutation errors in #427. Gonna continue somewhere next week most likely. |
@devnix can you rebase against the |
Hi @veewee! I've been playing with Rust for the last couple of weeks, and I've found that My original proposal would be something like |
Just looked at the rust documentation and that indeed seems the way to go and the naming to use here. Feel free to provide all 3 of those functions. |
Superseded by #434 |
The idea, as shown, is easy.
I propose a versatile
merge
method to make several operations easier between twoOption
s:This is what triggered this particular need in my case:
Probably there is a better name for this method, for sure!