pub struct PackIndexEntry {
pub oid: Vec<u8>,
pub offset: u64,
pub crc32: Option<u32>,
}Expand description
Owned pack index row (collect from PackIndex::iter when needed).
Fields§
§oid: Vec<u8>Raw object identifier (20 bytes for SHA-1, 32 for SHA-256).
offset: u64Byte offset of the object in the corresponding .pack.
crc32: Option<u32>CRC32 of the raw packed entry bytes (header + payload), from the v2 index CRC table.
Trait Implementations§
Source§impl Clone for PackIndexEntry
impl Clone for PackIndexEntry
Source§impl Debug for PackIndexEntry
impl Debug for PackIndexEntry
Source§impl TryFrom<PackIndexEntryRef<'_>> for PackIndexEntry
impl TryFrom<PackIndexEntryRef<'_>> for PackIndexEntry
Auto Trait Implementations§
impl Freeze for PackIndexEntry
impl RefUnwindSafe for PackIndexEntry
impl Send for PackIndexEntry
impl Sync for PackIndexEntry
impl Unpin for PackIndexEntry
impl UnsafeUnpin for PackIndexEntry
impl UnwindSafe for PackIndexEntry
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