pub struct IndexValue {
pub frame_offset: u64,
pub frame_length: u64,
pub wire_type: u8,
pub decoded_size: u64,
pub chain_depth: u32,
pub delta_base: Option<Hash>,
}Expand description
The immutable location and decoded metadata of one pack entry.
Fields§
§frame_offset: u64Offset of the complete frame in the pack.
frame_length: u64Length of the complete frame on the wire.
wire_type: u8SPEC-PACKFILE entry type: raw, delta, zstd raw, or zstd delta.
decoded_size: u64Reconstructed object size in bytes.
chain_depth: u32In-pack delta hops to the first non-in-pack-delta entry: zero for a full object, one for an external base, otherwise one plus the base’s in-pack depth. Verification follows external bases for total depth.
delta_base: Option<Hash>Base id for delta entry types only.
Trait Implementations§
Source§impl Clone for IndexValue
impl Clone for IndexValue
impl Copy for IndexValue
Source§impl Debug for IndexValue
impl Debug for IndexValue
impl Eq for IndexValue
Source§impl PartialEq for IndexValue
impl PartialEq for IndexValue
impl StructuralPartialEq for IndexValue
Auto Trait Implementations§
impl Freeze for IndexValue
impl RefUnwindSafe for IndexValue
impl Send for IndexValue
impl Sync for IndexValue
impl Unpin for IndexValue
impl UnsafeUnpin for IndexValue
impl UnwindSafe for IndexValue
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