pub struct IndexRow {
pub pack_id: u64,
pub offset: u64,
pub len: u64,
pub version: u32,
pub object_count: u32,
pub sha1: String,
}Expand description
One row of the built index — everything derivable from the pack bytes, which is exactly the work that was kept off the ack path.
Fields§
§pack_id: u64§offset: u64§len: u64§version: u32Packfile format version from the header (2 or 3), 0 if unparseable.
object_count: u32Object count from the header, 0 if unparseable.
sha1: StringSHA-1 over the verbatim pack bytes, hex. Not the pack’s own trailing checksum — a checksum of what was stored, so a later scrub can prove the archive still holds what was acked.
Trait Implementations§
impl Eq for IndexRow
impl StructuralPartialEq for IndexRow
Auto Trait Implementations§
impl Freeze for IndexRow
impl RefUnwindSafe for IndexRow
impl Send for IndexRow
impl Sync for IndexRow
impl Unpin for IndexRow
impl UnsafeUnpin for IndexRow
impl UnwindSafe for IndexRow
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.