diff options
| author | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2020-08-13 00:19:53 +0200 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2021-01-11 01:09:22 -0800 |
| commit | 4038042eb0f9e8088974f1d9342103ed1b5de31f (patch) | |
| tree | 56350c45d1d62a89d9db51b23233f530c74d5e4d /src/test/rustdoc-ui/coverage/basic.rs | |
| parent | a2cd91ceb0f156cb442d75e12dc77c3d064cdde4 (diff) | |
| download | rust-4038042eb0f9e8088974f1d9342103ed1b5de31f.tar.gz rust-4038042eb0f9e8088974f1d9342103ed1b5de31f.zip | |
Add `[T; N]::each_ref` and `[T; N]::each_mut`
These methods work very similarly to `Option`'s methods `as_ref` and `as_mut`. They are useful in several situation, particularly when calling other array methods (like `map`) on the result. Unfortunately, we can't easily call them `as_ref` and `as_mut` as that would shadow those methods on slices, thus being a breaking change (that is likely to affect a lot of code).
Diffstat (limited to 'src/test/rustdoc-ui/coverage/basic.rs')
0 files changed, 0 insertions, 0 deletions
