Function bevy_reflect::map_apply

source ·
pub fn map_apply<M: Map>(a: &mut M, b: &dyn Reflect)
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.

§Panics

This function panics if b is not a reflected map.