[−][src]Struct epub_builder::ZipLibrary
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.
Methods
impl ZipLibrary
[src]
pub fn new() -> Result<ZipLibrary>
[src]
Creates a new wrapper for zip library
Also add mimetype at the beginning of the EPUB file.
Trait Implementations
impl Zip for ZipLibrary
[src]
fn write_file<P: AsRef<Path>, R: Read>(
&mut self,
path: P,
content: R
) -> Result<()>
[src]
&mut self,
path: P,
content: R
) -> Result<()>
fn generate<W: Write>(&mut self, to: W) -> Result<()>
[src]
impl Debug for ZipLibrary
[src]
Auto Trait Implementations
impl Unpin for ZipLibrary
impl Sync for ZipLibrary
impl Send for ZipLibrary
impl RefUnwindSafe for ZipLibrary
impl UnwindSafe for ZipLibrary
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,