Function bevy::reflect::map_apply

pub fn map_apply<M>(a: &mut M, b: &(dyn Reflect + 'static))
where M: Map,
Expand description

Applies the elements of reflected map b to the corresponding elements of map a.

If a key from b does not exist in a, the value is cloned and inserted.


This function panics if b is not a reflected map.