pub struct ZipArchive<'a, B: Deref<Target = [u8]>> {
pub central_directory: CentralDirectory<'a>,
/* private fields */
}
Expand description
An entire ZIP archive file
Fields§
§central_directory: CentralDirectory<'a>
Implementations§
Source§impl<'a> ZipArchive<'a, Mmap>
impl<'a> ZipArchive<'a, Mmap>
Sourcepub fn from_path(path: impl AsRef<Path>) -> Result<Self, ZipParseError>
pub fn from_path(path: impl AsRef<Path>) -> Result<Self, ZipParseError>
Parse a ZipArchive
from a file path. The contents are memory mapped.
Source§impl<'a, B: Deref<Target = [u8]>> ZipArchive<'a, B>
impl<'a, B: Deref<Target = [u8]>> ZipArchive<'a, B>
Sourcepub fn from_buffer(buffer: B) -> Result<Self, ZipParseError>
pub fn from_buffer(buffer: B) -> Result<Self, ZipParseError>
Parse a ZipArchive
from an existing buffer in memory
Sourcepub fn files<'b>(
&'b mut self,
) -> impl Iterator<Item = Result<CompressedZipFile<'a>, ZipParseError>> + 'b
pub fn files<'b>( &'b mut self, ) -> impl Iterator<Item = Result<CompressedZipFile<'a>, ZipParseError>> + 'b
Lazily iterate over the files in this archive
Trait Implementations§
Auto Trait Implementations§
impl<'a, B> Freeze for ZipArchive<'a, B>where
B: Freeze,
impl<'a, B> RefUnwindSafe for ZipArchive<'a, B>where
B: RefUnwindSafe,
impl<'a, B> Send for ZipArchive<'a, B>where
B: Send,
impl<'a, B> Sync for ZipArchive<'a, B>where
B: Sync,
impl<'a, B> Unpin for ZipArchive<'a, B>where
B: Unpin,
impl<'a, B> UnwindSafe for ZipArchive<'a, B>where
B: UnwindSafe,
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