Function take_mut
pub(in ::collections::btree) 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.
If a panic occurs in the change closure, the entire process will be aborted.