-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
core: add Option::get_or_try_insert_with #143650
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
core: add Option::get_or_try_insert_with #143650
Conversation
This comment has been minimized.
This comment has been minimized.
f031640 to
d09af04
Compare
|
☔ The latest upstream changes (presumably #144109) made this pull request unmergeable. Please resolve the merge conflicts. |
d09af04 to
9e8f17f
Compare
|
About using the |
|
@a1phyr i initially proposed this as just using Result, it was a t-libs decision to make it use Try. |
Co-authored-by: kennytm <kennytm@gmail.com>
9e8f17f to
b8955c5
Compare
|
reviewer is inactive, rerolling r? t-libs |
|
Can I +1 this PR somehow? :) This would be incredibly useful to have. |
|
r? libs |
|
@bors r+ rollup |
Implementation for #143648