fn modify_bool(slot: &mut bool, new_value: bool) -> bool
Updates slot to new_value and returns true if the value was changed.
slot
new_value
true