fizyk20 / generic-array

Generic array types in Rust
MIT License
405 stars 77 forks source link

Is there a way to convert GenericArray<T, N> **into** [T; N] ? #132

Closed stackinspector closed 1 year ago

ghost commented 1 year ago

Looking for this same answer

bdbai commented 1 year ago

Please see this answer: https://github.com/fizyk20/generic-array/issues/127#issuecomment-1202490280

Once we get the regular integer value, it is easy to construct an array with that size.