bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Add `remove` method to `Map` reflection trait.

Open soqb opened this issue 3 years ago • 4 comments

Objective

  • Implements removal of entries from a dyn Map
  • Fixes #6563

Solution

  • Adds a remove method to the Map trait which takes in a &dyn Reflect key and returns the value removed if it was present.

Changelog

  • Added Map::remove

Migration Guide

  • Implementors of Map will need to implement the remove method.

soqb avatar Nov 12 '22 19:11 soqb

bors try

nicopap avatar Nov 12 '22 20:11 nicopap

bors try

james7132 avatar Nov 13 '22 11:11 james7132

bors r+

cart avatar Nov 14 '22 21:11 cart