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
I believe we intend to eventually extend the index traits with the ability to override the x[y] = z syntax specifically using a trait like IndexSet. This would allow hashmaps to be used like map[key] = value and have that insert the key, unlike today where map[key] = value will panic if key is not already present.
To pave the way, the simplest thing is to remove the IndexMut operator from those collections where we would anticipate growing on demand.
I believe that would be btree, hash_map, and possible vec_deque and vec_map.