bevy
bevy copied to clipboard
Add `remove` method to `Map` reflection trait.
Objective
- Implements removal of entries from a
dyn Map - Fixes #6563
Solution
- Adds a
removemethod to theMaptrait which takes in a&dyn Reflectkey and returns the value removed if it was present.
Changelog
- Added
Map::remove
Migration Guide
- Implementors of
Mapwill need to implement theremovemethod.
bors try
try
Build succeeded:
- build (windows-latest)
- run-examples
- build-without-default-features (bevy_reflect)
- build (macos-latest)
- check-compiles
- run-examples-on-wasm
- ci
- build (ubuntu-latest)
- build-wasm
- build-android
- markdownlint
- check-doc
- check-missing-examples-in-docs
- build-and-install-on-iOS
- run-examples-on-windows-dx12
- build-without-default-features (bevy)
- build-without-default-features (bevy_ecs)
bors try
try
Build succeeded:
- build (ubuntu-latest)
- build (macos-latest)
- build-wasm
- build-android
- markdownlint
- run-examples
- run-examples-on-wasm
- check-doc
- check-missing-examples-in-docs
- ci
- check-compiles
- build-and-install-on-iOS
- run-examples-on-windows-dx12
- build-without-default-features (bevy)
- build-without-default-features (bevy_ecs)
- build-without-default-features (bevy_reflect)
- build (windows-latest)
bors r+
Pull request successfully merged into main.
Build succeeded:
- build-and-install-on-iOS
- build-android
- build (macos-latest)
- build (ubuntu-latest)
- build-wasm
- build (windows-latest)
- build-without-default-features (bevy)
- build-without-default-features (bevy_ecs)
- build-without-default-features (bevy_reflect)
- check-compiles
- check-doc
- check-missing-examples-in-docs
- ci
- markdownlint
- run-examples
- run-examples-on-wasm
- run-examples-on-windows-dx12