-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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).
- Loading branch information
1 parent
a2cd91c
commit 4038042
Showing
1 changed file
with
72 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters