[][src]Trait epub_builder::Zip

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<()>

Write the source content to a file in the archive

fn generate<W: Write>(&mut self, _: W) -> Result<()>

Generate the ZIP file

Loading content...

Implementors

impl Zip for ZipCommandOrLibrary[src]

impl Zip for ZipCommand[src]

impl Zip for ZipLibrary[src]

Loading content...