Struct rc_zip::reader::sync::SyncArchive
source · pub struct SyncArchive<'a, F>where
F: HasCursor,{ /* private fields */ }
Implementations§
source§impl<F> SyncArchive<'_, F>where
F: HasCursor,
impl<F> SyncArchive<'_, F>where F: HasCursor,
sourcepub fn entries(&self) -> impl Iterator<Item = SyncStoredEntry<'_, F>>
pub fn entries(&self) -> impl Iterator<Item = SyncStoredEntry<'_, 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 = &StoredEntry>
pub fn entries(&self) -> impl Iterator<Item = &StoredEntry>
Iterate over all files in this zip, read from the central directory.
sourcepub fn by_name<N: AsRef<str>>(&self, name: N) -> Option<&StoredEntry>
pub fn by_name<N: AsRef<str>>(&self, name: N) -> Option<&StoredEntry>
Attempts to look up an entry by name. This is usually a bad idea, as names aren’t necessarily normalized in zip archives.