about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/basic.rs
diff options
context:
space:
mode:
authorLukas Kalbertodt <lukas.kalbertodt@gmail.com>2020-08-13 00:19:53 +0200
committerDavid Tolnay <dtolnay@gmail.com>2021-01-11 01:09:22 -0800
commit4038042eb0f9e8088974f1d9342103ed1b5de31f (patch)
tree56350c45d1d62a89d9db51b23233f530c74d5e4d /src/test/rustdoc-ui/coverage/basic.rs
parenta2cd91ceb0f156cb442d75e12dc77c3d064cdde4 (diff)
downloadrust-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