pub(crate) fn join<T: PartialEq>(
field: &'static str,
values: impl IntoIterator<Item = Option<T>>,
conflicts: &mut Vec<&'static str>,
) -> Option<T>Expand description
Join one StateWrite field across the strategies that set it: None if
none did, the common value if one or more set it to the same value, and
None with field pushed onto conflicts if two set it to different
values. The result and the conflict signal depend only on the set of values,
not the order they arrive in.