2 ms·
As far I understand the RFC won't allow for `Array[Y, N]` (or `Array<T, N>` in Rust parlance) note eddyb's comment: Note that all of this should allow imp
by Ygg2 9y ago
As far I understand the RFC won't allow for `Array[Y, N]` (or `Array<T, N>` in Rust parlance) note eddyb's comment:
Note that all of this should allow impl<T, const N: usize> Trait for [T; N] {...},
but not actually passing a constant expression to a type/function, e.g. ArrayVec<T, 3>.
What I'm actually looking is `Array<Y, size_of::<T>>` for support for data structures that vary depending on size of `T`.
- tatterdemalion 9y agoThe RFC supports it, eddyb's list of milestones in the compiler just don't get you all the way there.