pub fn with_mut<R, T>(receiver: &mut R, closure: impl FnOnce(&mut R) -> T) -> T
Calls the specified closure with the given mutable receiver and returns its result.
closure
receiver