set_apply

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. If a value from a does not exist in b, the value is removed.

ยงPanics

This function panics if b is not a reflected set.