pub struct IndexedEntry { /* private fields */ }Expand description
An indexed ZIP member and its central directory entry.
Its directory metadata is available through Self::directory.
The member’s local records are checked on demand by super::Index::entry
or super::Index::validate_all. Successful checks are cached by the index
and exposed through super::Index::resolved.
Implementations§
Source§impl IndexedEntry
impl IndexedEntry
Sourcepub fn directory(&self) -> &CentralDirectoryEntry
pub fn directory(&self) -> &CentralDirectoryEntry
Returns the member’s central directory entry.
Sourcepub fn record_range(&self) -> Range<u64> ⓘ
pub fn record_range(&self) -> Range<u64> ⓘ
Returns the span assigned to this member by the directory’s offsets.
This range can be prefetched before selection. Its local records have not necessarily been checked, and it includes headers and any descriptor.
Trait Implementations§
Auto Trait Implementations§
impl Forget for IndexedEntry
impl Freeze for IndexedEntry
impl Move for IndexedEntry
impl RefUnwindSafe for IndexedEntry
impl Send for IndexedEntry
impl Sync for IndexedEntry
impl Unpin for IndexedEntry
impl UnsafeUnpin for IndexedEntrywhere
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
*const [u8] is !null: UnsafeUnpin,
PhantomData<[u8]>: UnsafeUnpin,
impl UnwindSafe for IndexedEntry
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