Trait epub_builder::Zip
source · [−]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<()>;
}Expand description
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