pub enum ZipCommandOrLibrary {
Command(ZipCommand),
Library(ZipLibrary),
}Expand description
Wrapper around either a ZipCommand or a ZipLibrary
Allows to create an EpubBuilder that can decide at runtime which to use.
Variants§
Implementations§
Source§impl ZipCommandOrLibrary
impl ZipCommandOrLibrary
Sourcepub fn new(command: &str) -> Result<ZipCommandOrLibrary>
pub fn new(command: &str) -> Result<ZipCommandOrLibrary>
Try to create a ZipCommand using command. If running command fails on the system,
fall back to ZipLibrary.
Auto Trait Implementations§
impl Freeze for ZipCommandOrLibrary
impl RefUnwindSafe for ZipCommandOrLibrary
impl Send for ZipCommandOrLibrary
impl Sync for ZipCommandOrLibrary
impl Unpin for ZipCommandOrLibrary
impl UnwindSafe for ZipCommandOrLibrary
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