pub fn maybe_change<T: PartialEq>(field: &mut Option<T>, value: T) -> bool