You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 2.0 we want to use const generics so that ArrayVec is available for far more lengths than just the handful of lengths we declare.
The main snag is that we need to be able to Default the array. This requires either that Default be implemented for any array length (seems far out, if at all?) or we need to have array_map become stable. If array_map becomes stable you just write [(); N].map(|()| T::default() ) and move on with life.
In 2.0 we want to use const generics so that
ArrayVecis available for far more lengths than just the handful of lengths we declare.Defaultthe array. This requires either that Default be implemented for any array length (seems far out, if at all?) or we need to have array_map become stable. If array_map becomes stable you just write[(); N].map(|()| T::default() )and move on with life.