Convenience method for flipping Option<Result> to Result<Option>?

1 Like

Oh, heh, and I just released 1.0.0.


All right. Now we have plenty to choose from. :smiley:

Thanks for pushing these changes, @arcnmx and @dpc! That should help make a lot of functions quite a bit simpler. :smiley:

It’s been a while since this thread was wrapped up, but I’ve been going through TWIR and have found that this feature has now been merged into nightly Rust as Option::transpose() and Result::transpose(). Thanks to @cramertj for making the PR and to everyone else for working out the kinks in it!


And for reference #47338 is the tracking issue for stabilization.

1 Like