Closed tarcieri closed 8 months ago
...and asserts as much by impl'ing the trait for core arrays.
The main notable change is bounding on AsRef<[T]>/AsMut<[T]>, which core arrays do impl, however they don't actually impl AsRef<[T; N]>/AsMut<[T; N]>.
AsRef<[T]>
AsMut<[T]>
AsRef<[T; N]>
AsMut<[T; N]>
Those impls are retained on Array, but new ones added for AsRef<[T]>/AsMut<[T]>, providing better parity with core arrays.
Array
...and asserts as much by impl'ing the trait for core arrays.
The main notable change is bounding on
AsRef<[T]>
/AsMut<[T]>
, which core arrays do impl, however they don't actually implAsRef<[T; N]>
/AsMut<[T; N]>
.Those impls are retained on
Array
, but new ones added forAsRef<[T]>
/AsMut<[T]>
, providing better parity with core arrays.