map needs clear #2775
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
map needs a clear or remove_all method. This is especially important because I don't think there is a good work around. Obvious candidates are 1) remove each key individually which is awful performance wise 2) use a mutable field or slot and assign a new map which, in my case at least, caused a cascade of illegal borrows.
The text was updated successfully, but these errors were encountered: