pub fn try_with_mut<R, T, E>( receiver: &mut R, closure: impl FnOnce(&mut R) -> Result<T, E>, ) -> Result<T, E>
Calls the specified closure with the given mutable receiver and returns a Result.
closure
receiver
Result