5

Added the `Option::unzip()` method by Kixiron · Pull Request #87636 · rust-lang/...

 2 years ago
source link: https://github.com/rust-lang/rust/pull/87636
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Member

Kixiron commented 20 days ago

edited
  • Adds the Option::unzip() method to turn an Option<(T, U)> into (Option<T>, Option<U>) under the unzip_option feature
  • Adds tests for both Option::unzip() and Option::zip(), I noticed that .zip() didn't have any
  • Adds #[inline] to a few of Option's methods that were missing it

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK