pub fn with_writer<F>(self, f: F) -> Result<(), WorkspaceError>
    where
        F: FnOnce(&mut Writer) -> Result<(), WorkspaceError> + Send,
    {
        let env_ref = self.0.guard();
        env_ref.with_commit::<WorkspaceError, (), _>(|w| {
            f(w)?;
            Ok(())
        })?;
        Ok(())
    }
/// Create the writer and pass it into a closure.
Create the writer and pass it into a closure.
Create the writer and pass it into a closure .
pub fn with_writer<F>(self, f: F) -> Result<(), WorkspaceError>
    where
        F: FnOnce(&mut Writer) -> Result<(), WorkspaceError> + Send,
    {
        let env_ref = self.0.guard();
        env_ref.with_commit::<WorkspaceError, (), _>(|w| {
            f(w)?;
            Ok(())
        })?;
        Ok(())
    }
pub fn with_writer < F > ( self , f : F ) -> Result < ( ) , WorkspaceError > where F : FnOnce ( & mut Writer ) -> Result < ( ) , WorkspaceError > + Send , { let env_ref = self . 0 . guard ( ) ; env_ref . with_commit :: < WorkspaceError , ( ) , _ > ( | w | { f ( w ) ? ; Ok ( ( ) ) } ) ? ; Ok ( ( ) ) }
Create the writer and pass it into a closure.
Create the writer and pass it into a closure .
self
f
F
self
f
F