pub struct Zip { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Decompressor for Zip
impl Decompressor for Zip
Source§fn test_mimetype(&self, archive: &str) -> bool
fn test_mimetype(&self, archive: &str) -> bool
Test if this
Decompressor can unpack an archive, given a mimetype.Source§fn test(&self, archive: &Path) -> bool
fn test(&self, archive: &Path) -> bool
Test if this
Decompressor can unpack an archive, given a path.
The convention is to use Regex internally to test a path, because this is
a convenient way for end users to override the behavior.
You may choose to implement a different, but configurable, testing strategy.Source§fn decompress(
&self,
archive: &Path,
to: &Path,
opts: &ExtractOpts,
) -> Result<Decompression, DecompressError>
fn decompress( &self, archive: &Path, to: &Path, opts: &ExtractOpts, ) -> Result<Decompression, DecompressError>
Decompress an archive Read more
Auto Trait Implementations§
impl Freeze for Zip
impl RefUnwindSafe for Zip
impl Send for Zip
impl Sync for Zip
impl Unpin for Zip
impl UnsafeUnpin for Zip
impl UnwindSafe for Zip
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