Dylan DPC 10aa3d3f89
Rollup merge of #76120 - LukasKalbertodt:add-as-slice-method-to-array, r=Mark-Simulacrum
Add `[T; N]::as_[mut_]slice`

Part of me trying to populate arrays with a couple of basic useful methods, like slices already have. The ability to add methods to arrays were added in #75212.  Tracking issue: #76118

This adds:

```rust
impl<T, const N: usize> [T; N] {
    pub fn as_slice(&self) -> &[T];
    pub fn as_mut_slice(&mut self) -> &mut [T];
}
```

These methods are like the ones on `std::array::FixedSizeArray` and in the crate `arraytools`.
2020-09-03 02:22:00 +02:00
..
2020-08-30 21:08:17 +02:00
2020-08-30 17:07:50 +05:30
2020-08-27 19:42:23 -07:00
2020-08-26 10:17:31 +02:00
2020-08-28 17:30:05 +02:00
2020-08-26 10:17:31 +02:00
2020-09-01 19:56:32 +02:00
2020-08-31 10:22:14 -07:00
2020-08-27 01:16:18 +02:00
2020-08-30 23:48:54 +02:00
2020-08-26 10:17:31 +02:00
2020-09-01 18:16:34 +02:00
2020-08-26 10:17:31 +02:00
2020-08-26 10:17:31 +02:00