RustCrypto / utils

Utility crates used in RustCrypto
428 stars 127 forks source link

hybrid-array: re-add `AsRef<[T; N]>`/`AsMut<[T; N]>` impls #1031

Closed tarcieri closed 8 months ago

tarcieri commented 8 months ago

These were removed in #1026 for more consistency with core arrays and so inference would work by eliminating overlapping impls.

However, generic-array provides these impls, which makes removing them problematic when migrating generic-array-based code, so it's easier to keep them around, even if it breaks inference due to overlapping impls.