pub fn update_read<F, R, E>(&self, f: F) -> Result<R, E>
    where
        F: FnOnce(&UpdateReader) -> Result<R, E>,
        E: From<Error>,
    {
        let reader = self.update_read_txn()?;
        let result = f(&reader)?;
        reader.abort().map_err(Error::Heed)?;
        Ok(result)
    }
/// provides a context with a reader to the update database. experimental.
provides a context with a reader to the update database. experimental.
provides a context with a reader to the update database . experimental .
pub fn update_read<F, R, E>(&self, f: F) -> Result<R, E>
    where
        F: FnOnce(&UpdateReader) -> Result<R, E>,
        E: From<Error>,
    {
        let reader = self.update_read_txn()?;
        let result = f(&reader)?;
        reader.abort().map_err(Error::Heed)?;
        Ok(result)
    }
pub fn update_read < F , R , E > ( & self , f : F ) -> Result < R , E > where F : FnOnce ( & UpdateReader ) -> Result < R , E > , E : From < Error > , { let reader = self . update_read_txn ( ) ? ; let result = f ( & reader ) ? ; reader . abort ( ) . map_err ( Error :: Heed ) ? ; Ok ( result ) }
provides a context with a reader to the update database.
provides a context with a reader to the update database .
&self
f
F
&self
f
F