pub struct GroupIndex { /* private fields */ }Expand description
Parser for .index group index files
Implementations§
Source§impl GroupIndex
impl GroupIndex
Sourcepub fn parse_file(path: &Path) -> Result<Self>
pub fn parse_file(path: &Path) -> Result<Self>
Parse a group index file from disk
Sourcepub fn bucket_index(&self) -> u8
pub fn bucket_index(&self) -> u8
Get the bucket index for this group
Sourcepub fn lookup(&self, ekey: &EKey) -> Option<&ArchiveLocation>
pub fn lookup(&self, ekey: &EKey) -> Option<&ArchiveLocation>
Look up an entry by EKey
Sourcepub fn entries(&self) -> impl Iterator<Item = (&EKey, &ArchiveLocation)>
pub fn entries(&self) -> impl Iterator<Item = (&EKey, &ArchiveLocation)>
Iterate over all entries
Sourcepub fn archive_total_size(&self) -> u64
pub fn archive_total_size(&self) -> u64
Get total archive size
Auto Trait Implementations§
impl Freeze for GroupIndex
impl RefUnwindSafe for GroupIndex
impl Send for GroupIndex
impl Sync for GroupIndex
impl Unpin for GroupIndex
impl UnwindSafe for GroupIndex
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