bevy_reflect

Function 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.