Function try_with_mut

Source
pub fn try_with_mut<R, T, E>(
    receiver: &mut R,
    closure: impl FnOnce(&mut R) -> Result<T, E>,
) -> Result<T, E>
Expand description

Calls the specified closure with the given mutable receiver and returns a Result.