pub struct ArchiveHandle<'a, F>where
F: HasCursor,{ /* private fields */ }
Expand description
A zip archive, read synchronously from a file or other I/O resource.
This only contains metadata for the archive and its entries. Separate readers can be created for arbitraries entries on-demand using EntryHandle::reader.
Implementations§
source§impl<F> ArchiveHandle<'_, F>where
F: HasCursor,
impl<F> ArchiveHandle<'_, F>where
F: HasCursor,
sourcepub fn entries(&self) -> impl Iterator<Item = EntryHandle<'_, F>>
pub fn entries(&self) -> impl Iterator<Item = EntryHandle<'_, F>>
Iterate over all files in this zip, read from the central directory.
Methods from Deref<Target = Archive>§
sourcepub fn entries(&self) -> impl Iterator<Item = &Entry>
pub fn entries(&self) -> impl Iterator<Item = &Entry>
Iterate over all files in this zip, read from the central directory.
sourcepub fn by_name<N>(&self, name: N) -> Option<&Entry>
pub fn by_name<N>(&self, name: N) -> Option<&Entry>
Attempts to look up an entry by name. This is usually a bad idea, as names aren’t necessarily normalized in zip archives.
Trait Implementations§
Auto Trait Implementations§
impl<'a, F> Freeze for ArchiveHandle<'a, F>
impl<'a, F> RefUnwindSafe for ArchiveHandle<'a, F>where
F: RefUnwindSafe,
impl<'a, F> Send for ArchiveHandle<'a, F>where
F: Sync,
impl<'a, F> Sync for ArchiveHandle<'a, F>where
F: Sync,
impl<'a, F> Unpin for ArchiveHandle<'a, F>
impl<'a, F> UnwindSafe for ArchiveHandle<'a, F>where
F: RefUnwindSafe,
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