pub fn do_mut<R, F: FnOnce(&mut T) -> R>(&mut self, f: F) -> Result<R> {
        self.check_load()?;
        let r = f(self.inner.get_mut());
        self.save()?;
        Ok(r)
    }
/// Applies the given closure to a mutable reference to the inner value
/// and automatically saves the state to the cache file afterwards
/// 
/// **Note**: Currently, it might still return an error, even if the closure was run.
Applies the given closure to a mutable reference to the inner value
and automatically saves the state to the cache file afterwards

Note**: Currently, it might still return an error, even if the closure was run.
Applies the given closure to a mutable reference to the inner value and automatically saves the state to the cache file afterwards Note ** : Currently it might still return an error even if the closure was run .
pub fn do_mut<R, F: FnOnce(&mut T) -> R>(&mut self, f: F) -> Result<R> {
        self.check_load()?;
        let r = f(self.inner.get_mut());
        self.save()?;
        Ok(r)
    }
pub fn do_mut < R , F : FnOnce ( & mut T ) -> R > ( & mut self , f : F ) -> Result < R > { self . check_load ( ) ? ; let r = f ( self . inner . get_mut ( ) ) ; self . save ( ) ? ; Ok ( r ) }
Applies the given closure to a mutable reference to the inner value
and automatically saves the state to the cache file afterwards
Applies the given closure to a mutable reference to the inner value and automatically saves the state to the cache file afterwards
&mut self
f
F