about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-06-15 12:01:03 +0200
committerGitHub <noreply@github.com>2020-06-15 12:01:03 +0200
commit93696f45fffbefa55ff57d91b12fc29c77ee6302 (patch)
tree1c17440e494b253fcf562e437c2dd372b8c35a40 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent9217ef20183851bb6e248e150b0c4f5724f7464f (diff)
parent994a83962237558b67aa0a6d4459a32073c543dd (diff)
downloadrust-93696f45fffbefa55ff57d91b12fc29c77ee6302.tar.gz
rust-93696f45fffbefa55ff57d91b12fc29c77ee6302.zip
Rollup merge of #72938 - lzutao:stabilize_option_zip, r=dtolnay
Stabilize Option::zip

This PR stabilizes the following API:

```rust
impl<T> Option<T> {
    pub fn zip<U>(self, other: Option<U>) -> Option<(T, U)>;
}
```

This API has real world usage as seen in <https://grep.app/search?q=-%3E%20Option%3C%5C%28T%2C%5Cs%3FU%5C%29%3E&regexp=true&filter[lang][0]=Rust>.

The `zip_with` method is left unstably as this API is kinda niche
and it hasn't received much usage in Rust repositories on GitHub.

cc #70086
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions