bevy_reflect

Function set_apply

Source
pub fn set_apply<M: Set>(a: &mut M, b: &dyn PartialReflect)
Expand description

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

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

ยงPanics

This function panics if b is not a reflected set.