pub struct ZipLibrary { /* private fields */ }
Expand description
Zip files using the Rust zip
library.
While this has the advantage of not requiring an external zip
command, I have
run into some issues when trying to export EPUB generated with this method to
ereaders (e.g. Kobo).
Note that these takes care of adding the mimetype (since it must not be deflated), it should not be added manually.
Implementations§
Source§impl ZipLibrary
impl ZipLibrary
Sourcepub fn new() -> Result<ZipLibrary>
pub fn new() -> Result<ZipLibrary>
Creates a new wrapper for zip library
Also add mimetype at the beginning of the EPUB file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZipLibrary
impl RefUnwindSafe for ZipLibrary
impl Send for ZipLibrary
impl Sync for ZipLibrary
impl Unpin for ZipLibrary
impl UnwindSafe for ZipLibrary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more