pub struct Archive<'a> {
zip: &'a [u8],
entries: BTreeMap<String, Entry>,
}Expand description
A package whose central directory has been read once. Finding each file by walking the directory again cost an install of n files n² entry parses: 8.5 s of a 12 s install at 3 000 files.
Fields§
§zip: &'a [u8]§entries: BTreeMap<String, Entry>Files only, by folded path, because a ledger may hold a path folded.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Archive<'a>
impl<'a> RefUnwindSafe for Archive<'a>
impl<'a> Send for Archive<'a>
impl<'a> Sync for Archive<'a>
impl<'a> Unpin for Archive<'a>
impl<'a> UnsafeUnpin for Archive<'a>
impl<'a> UnwindSafe for Archive<'a>
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