bevy/crates/bevy_reflect/src
James Liu 5498ef81fb bevy_reflect: support map insertion (#5173)
# Objective

This is a rebase of #3701 which is currently scheduled for 0.8 but is marked for adoption.

> Fixes https://github.com/bevyengine/bevy/discussions/3609

## Solution
> - add an `insert_boxed()` method on the `Map` trait
> - implement it for `HashMap` using a new `FromReflect` generic bound
> - add a `map_apply()` helper method to implement `Map::apply()`, that inserts new values instead of ignoring them


---

## Changelog
TODO

Co-authored-by: james7132 <contact@jamessliu.com>
2022-07-04 13:04:19 +00:00
..
impls bevy_reflect: support map insertion (#5173) 2022-07-04 13:04:19 +00:00
serde bevy_reflect: support map insertion (#5173) 2022-07-04 13:04:19 +00:00
array.rs Make Reflect safe to implement (#5010) 2022-06-27 16:52:25 +00:00
fields.rs bevy_reflect: Add statically available type info for reflected types (#4042) 2022-06-09 21:18:15 +00:00
lib.rs bevy_reflect: support map insertion (#5173) 2022-07-04 13:04:19 +00:00
list.rs Make Reflect safe to implement (#5010) 2022-06-27 16:52:25 +00:00
map.rs bevy_reflect: support map insertion (#5173) 2022-07-04 13:04:19 +00:00
path.rs document more of bevy_reflect (#3655) 2022-01-14 19:09:44 +00:00
reflect.rs bevy_reflect: support map insertion (#5173) 2022-07-04 13:04:19 +00:00
std_traits.rs add #[reflect(Default)] to create default value for reflected types (#3733) 2022-05-03 19:20:13 +00:00
struct_trait.rs Make Reflect safe to implement (#5010) 2022-06-27 16:52:25 +00:00
tuple_struct.rs Make Reflect safe to implement (#5010) 2022-06-27 16:52:25 +00:00
tuple.rs Make Reflect safe to implement (#5010) 2022-06-27 16:52:25 +00:00
type_info.rs Make Reflect safe to implement (#5010) 2022-06-27 16:52:25 +00:00
type_registry.rs Move get_short_name utility method from bevy_reflect into bevy_utils (#5174) 2022-07-02 18:30:45 +00:00
type_uuid.rs re-enable #[derive(TypeUuid)] for generics (#4118) 2022-04-26 19:41:25 +00:00
utility.rs Make Reflect safe to implement (#5010) 2022-06-27 16:52:25 +00:00