-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
A-ReflectionRuntime information about typesRuntime information about typesC-FeatureA new feature, making something new possibleA new feature, making something new possible
Description
What problem does this solve or what need does it fill?
There is currently no way to remove an entry from a dyn Map other than through downcasting.
What solution would you like?
Add a remove method to the Map trait which takes in an &dyn Reflect key and returns an Option<Box<dyn Reflect>> representing the value removed (if present).
What alternative(s) have you considered?
Leave as is, require downcasting to remove entries.
Additional context
As discussed with @MrGVSV on discord. Compliments the work done in #5797 (List::pop).
Metadata
Metadata
Assignees
Labels
A-ReflectionRuntime information about typesRuntime information about typesC-FeatureA new feature, making something new possibleA new feature, making something new possible
Type
Projects
Status
Done