Skip to content
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

Result::coalesce #2576

Closed
SoniEx2 opened this issue Oct 24, 2018 · 1 comment
Closed

Result::coalesce #2576

SoniEx2 opened this issue Oct 24, 2018 · 1 comment

Comments

@SoniEx2
Copy link

SoniEx2 commented Oct 24, 2018

For use with Vec::binary_search_by (I guess it's technically part of slice), it would be nice to have an Result::coalesce that takes an Result<T, T> and turns it into an T.

@Centril
Copy link
Contributor

Centril commented Oct 24, 2018

Decided against in rust-lang/rust#54219; please direct any new information that way.

@Centril Centril closed this as completed Oct 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants