pub fn take_mut<T>(v: &mut T, change: impl FnOnce(T) -> T)
This replaces the value behind the v unique reference by calling the relevant function.
v
If a panic occurs in the change closure, the entire process will be aborted.
change