-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add Option::insert method #29204
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
Add Option::insert method #29204
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
I think this needs an RfC |
Maybe. It seemed too small and trivial for an RFC though. |
To me this brushes up against the line of needing an RFC. While small, the
This will at least need an |
You can start asking that about all enum types. I think it matters more for
Perhaps a different name would suit better? It was a combination of the
I'm indifferent. |
I've wanted something like this, but closer to the various |
See also my older pull request: #25149. |
The libs team discussed this during triage yesterday, and the conclusion was to postpone this for an RFC. If you need any help writing one, though, please just let me know! |
Fix for this bug: #29203