-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of `as_flattened` and `as_flattened_mut` for nested `Array` types to make it easier to operate on nested `Array`s. Inspiration drawn from the `as_flattened{_mut}` implementations on `[[T; N]]` (i.e. for the [slice primitive](https://doc.rust-lang.org/core/primitive.slice.html#method.as_flattened)). Note: * `Array<[T; N], U>` already implements these functions as it is transparent to `&[[T; N]]`. * `[Array<T, U>]` does not implement these functions and we can't implement them this way without a new local trait. Doesn't really seem necessary though. Co-authored-by: jmwample <8297368+jmwample@users.noreply.github.com>
- Loading branch information
Showing
1 changed file
with
90 additions
and
0 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