pub fn persist(&self, dst: &Path) -> Result<(), PersistenceError> {
        let mut file = OpenOptions::new()
            .write(true)
            .create(true)
            .open(dst)
            .map_err(|err| PersistenceError::FileSystemError {
                path: dst.display().to_string(),
                context: "Failed to open file".to_string(),
                internal_error: err.to_string(),
            })?;
        self.apply_to_file(&mut file, dst)?;
        Ok(())
    }
/// Persists this delta to the specified destination.
Persists this delta to the specified destination.
Persists this delta to the specified destination .
pub fn persist(&self, dst: &Path) -> Result<(), PersistenceError> {
        let mut file = OpenOptions::new()
            .write(true)
            .create(true)
            .open(dst)
            .map_err(|err| PersistenceError::FileSystemError {
                path: dst.display().to_string(),
                context: "Failed to open file".to_string(),
                internal_error: err.to_string(),
            })?;
        self.apply_to_file(&mut file, dst)?;
        Ok(())
    }
pub fn persist ( & self , dst : & Path ) -> Result < ( ) , PersistenceError > { let mut file = OpenOptions :: new ( ) . write ( true ) . create ( true ) . open ( dst ) . map_err ( | err | PersistenceError :: FileSystemError { path : dst . display ( ) . to_string ( ) , context : " " . to_string ( ) , internal_error : err . to_string ( ) , } ) ? ; self . apply_to_file ( & mut file , dst ) ? ; Ok ( ( ) ) }
Persists this delta to the specified destination.
Persists this delta to the specified destination .
&self
dst
&Path
&self
dst
&Path