pub struct PackIndexRecord {
pub oid: ObjectId,
pub offset: u64,
pub crc32: u32,
pub kind: ObjectKind,
}Expand description
Resolved (oid, pack_offset) pairs for every object slot in a pack byte stream.
Offsets point at packed object headers (including delta slots). Thin-pack bases
may be resolved from odb when they are not present in the pack.
One row for a v2 pack index: resolved OID, header offset, CRC32 of raw pack bytes.
Fields§
§oid: ObjectIdObject id (after delta resolution).
offset: u64Byte offset of the object header in the pack.
crc32: u32CRC32 of the packed object slice (header + zlib payload).
kind: ObjectKindObject type after delta resolution.
Trait Implementations§
Source§impl Clone for PackIndexRecord
impl Clone for PackIndexRecord
Auto Trait Implementations§
impl Freeze for PackIndexRecord
impl RefUnwindSafe for PackIndexRecord
impl Send for PackIndexRecord
impl Sync for PackIndexRecord
impl Unpin for PackIndexRecord
impl UnsafeUnpin for PackIndexRecord
impl UnwindSafe for PackIndexRecord
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