pub fn save<P: AsRef<Path>>(&self, path: P) -> Result<()> {
        let file = try!(File::create(path));
        let mut zip = ZipWriter::new(file);

        for (path, data) in &self.files {
            try!(zip.start_file(&**path, zip::CompressionMethod::Deflated));
            try!(zip.write(data));
        }

        Ok(())
    }
/// Save the .bc archive to disk at the given path.
Save the .bc archive to disk at the given path.
Save the . bc archive to disk at the given path .
pub fn save<P: AsRef<Path>>(&self, path: P) -> Result<()> {
        let file = try!(File::create(path));
        let mut zip = ZipWriter::new(file);
        for (path, data) in &self.files {
            try!(zip.start_file(&**path, zip::CompressionMethod::Deflated));
            try!(zip.write(data));
        }
        Ok(())
    }
pub fn save < P : AsRef < Path > > ( & self , path : P ) -> Result < ( ) > { let file = try ! ( File create ( path ) ) ; let mut zip = ZipWriter :: new ( file ) ; for ( path , data ) in & self . files { try ! ( zip start_file ( path zip CompressionMethod Deflated ) ) ; try ! ( zip write ( data ) ) ; } Ok ( ( ) ) }
Save the .bc archive to disk at the given path.
Save the . bc archive to disk at the given path .
&self
path
P
&self
path
P