pub struct LoadedPackBitmap { /* private fields */ }Expand description
A pack’s .bitmap loaded for consultation: oid <-> pack-position mappings,
resolved (XOR-expanded) per-commit reachability bitsets, and the four object
type bitmaps. Bit numbering follows pack order throughout.
Implementations§
Source§impl LoadedPackBitmap
impl LoadedPackBitmap
pub fn object_count(&self) -> u32
Sourcepub fn pack_position(&self, oid: &ObjectId) -> Option<u32>
pub fn pack_position(&self, oid: &ObjectId) -> Option<u32>
Pack-order position of oid, when the object is in the bitmapped pack.
pub fn oid_at(&self, position: u32) -> Option<&ObjectId>
Sourcepub fn bitmap_for_commit(&self, oid: &ObjectId) -> Option<&Arc<Vec<u64>>>
pub fn bitmap_for_commit(&self, oid: &ObjectId) -> Option<&Arc<Vec<u64>>>
The resolved reachability bitset stored for oid, when it was one of
the writer’s selected commits.
Sourcepub fn bitmapped_commits(&self) -> impl Iterator<Item = &ObjectId>
pub fn bitmapped_commits(&self) -> impl Iterator<Item = &ObjectId>
Oids of every commit with a stored bitmap entry (unordered).
pub fn pseudo_merge_count(&self) -> usize
pub fn pseudo_merge_words(&self, index: usize) -> Option<(&[u64], &[u64])>
Sourcepub fn type_words(&self, object_type: ObjectType) -> &[u64]
pub fn type_words(&self, object_type: ObjectType) -> &[u64]
The type bitmap for object_type (bit per pack position).
Auto Trait Implementations§
impl Freeze for LoadedPackBitmap
impl RefUnwindSafe for LoadedPackBitmap
impl Send for LoadedPackBitmap
impl Sync for LoadedPackBitmap
impl Unpin for LoadedPackBitmap
impl UnsafeUnpin for LoadedPackBitmap
impl UnwindSafe for LoadedPackBitmap
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