Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map needs clear #2775

Closed
jesse99 opened this issue Jul 2, 2012 · 3 comments
Closed

map needs clear #2775

jesse99 opened this issue Jul 2, 2012 · 3 comments
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.

Comments

@jesse99
Copy link
Contributor

jesse99 commented Jul 2, 2012

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.

@catamorphism
Copy link
Contributor

Changed wishlist label to enhancement -- wishlist is for the really ambitious stuff, and this shouldn't be too hard :-)

@gwillen
Copy link
Contributor

gwillen commented Jul 11, 2012

I believe this is now resolved. (I can't close it.)

@catamorphism
Copy link
Contributor

Thanks @gwillen !

RalfJung pushed a commit to RalfJung/rust that referenced this issue Feb 26, 2023
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

3 participants