RustCrypto / utils

Utility crates used in RustCrypto
428 stars 127 forks source link

hybrid-array: `AssociatedArraySize` trait #1006

Closed tarcieri closed 8 months ago

tarcieri commented 8 months ago

Adds a type for associating a typenum-based size with a given array type, which can be either [T; N] or Array<T, U>.

This subsumes the previous IntoArray trait, which can be replaced by a simple Into bound instead.