RustCrypto / utils

Utility crates used in RustCrypto
428 stars 127 forks source link

hybrid-array: use `From` for `Array`<->`[T; N]` reference conversions #1026

Closed tarcieri closed 8 months ago

tarcieri commented 8 months ago

...instead of AsRef/AsMut, which allows inference to work for those traits.

Notably [T; N] doesn't impl AsRef/AsMut for itself, only for slices, so this is more consistent.