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
fn write_file<P: AsRef<Path>, R: Read>(&mut self,
file: P,
content: R)
-> Result<()>
file: P,
content: R)
-> Result<()>
Write the source content to a file in the archive
fn generate<W: Write>(&mut self, W) -> Result<()>
Generate the ZIP file
Implementors
impl Zip for ZipCommandimpl Zip for ZipLibrary