Trait epub_builder::Zip [] [src]

pub trait Zip {
    fn write_file<P: AsRef<Path>, R: Read>(&mut self,
                                           file: P,
                                           content: R)
                                           -> Result<()>; fn generate<W: Write>(&mut self, _: W) -> Result<()>; }

An abstraction over possible Zip implementations.

The actual implementations are ZipCommand (uses the system command zip) or ZipLibrary (uses the Rust zip library).

Required Methods

Write the source content to a file in the archive

Generate the ZIP file

Implementors