Skip to content

map needs clear #2775

Closed
Closed
@jesse99

Description

@jesse99

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions