fn init(&self) -> Result<(), Error> {
        let res = Path::new(&self.result);
        println!("cargo:rerun-if-changed={}", self.source);
        if res.exists() {
            fs::remove_dir_all(&self.result).unwrap();
        }

        fs::create_dir(&self.result).unwrap();
        self.create_dir_structure(Path::new(&self.source))?;
        Ok(())
    }
// creates base_dir to output files to
creates base_dir to output files to
creates base_dir to output files to
fn init(&self) -> Result<(), Error> {
        let res = Path::new(&self.result);
        println!("cargo:rerun-if-changed={}", self.source);
        if res.exists() {
            fs::remove_dir_all(&self.result).unwrap();
        }
        fs::create_dir(&self.result).unwrap();
        self.create_dir_structure(Path::new(&self.source))?;
        Ok(())
    }
fn init ( & self ) -> Result < ( ) , Error > { let res = Path :: new ( & self . result ) ; println ! ( " " self source ) ; if res . exists ( ) { fs :: remove_dir_all ( & self . result ) . unwrap ( ) ; } fs :: create_dir ( & self . result ) . unwrap ( ) ; self . create_dir_structure ( Path :: new ( & self . source ) ) ? ; Ok ( ( ) ) }
creates base_dir to output files to
creates base_dir to output files to
&self
&self