pub struct IndexEntry {
pub id: ObjectId,
pub offset: u64,
pub crc32: u32,
}Expand description
Metadata for one complete encoded pack entry. Offsets include the pack header; CRCs cover its type/length header and complete zlib stream. An index’s entries must be unique and sorted by ID. Fields do not authenticate a foreign pack.
Fields§
§id: ObjectId§offset: u64§crc32: u32Implementations§
Source§impl IndexEntry
impl IndexEntry
Sourcepub const EMPTY: IndexEntry
pub const EMPTY: IndexEntry
Initial value for caller-owned metadata arrays; overwritten during encoding.
Trait Implementations§
Source§impl Clone for IndexEntry
impl Clone for IndexEntry
Source§fn clone(&self) -> IndexEntry
fn clone(&self) -> IndexEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IndexEntry
Source§impl Debug for IndexEntry
impl Debug for IndexEntry
impl Eq for IndexEntry
Source§impl PartialEq for IndexEntry
impl PartialEq for IndexEntry
impl StructuralPartialEq for IndexEntry
Auto Trait Implementations§
impl Freeze for IndexEntry
impl RefUnwindSafe for IndexEntry
impl Send for IndexEntry
impl Sync for IndexEntry
impl Unpin for IndexEntry
impl UnsafeUnpin for IndexEntry
impl UnwindSafe for IndexEntry
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