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
VecMap perfectly fits my current use case, except that my integer keys are newtype-wrapped for safety reasons. It'd be really cool if any types that can convert from and into usize could be used. The inner workings need not be changed, and I think the interface can even be extended in a backwards-compatible way if that's desired.
The text was updated successfully, but these errors were encountered:
I recommend having a look at typed-index-collections. One can use TiVec<K, Option<V>> similarly to VecMap, although the API is of course more Vec than Map.
VecMap
perfectly fits my current use case, except that my integer keys are newtype-wrapped for safety reasons. It'd be really cool if any types that can convert from and intousize
could be used. The inner workings need not be changed, and I think the interface can even be extended in a backwards-compatible way if that's desired.The text was updated successfully, but these errors were encountered: