pub struct PackIndexViewData {
pub version: u32,
pub count: usize,
pub fanout: [u32; 256],
pub pack_checksum: ObjectId,
pub index_checksum: ObjectId,
/* private fields */
}Fields§
§version: u32§count: usize§fanout: [u32; 256]§pack_checksum: ObjectId§index_checksum: ObjectIdImplementations§
Source§impl PackIndexViewData
impl PackIndexViewData
pub fn parse(bytes: Arc<[u8]>, format: ObjectFormat) -> Result<Self>
Sourcepub fn parse_without_checksum(
bytes: Arc<[u8]>,
format: ObjectFormat,
) -> Result<Self>
pub fn parse_without_checksum( bytes: Arc<[u8]>, format: ObjectFormat, ) -> Result<Self>
Parse and validate an owned index view without recomputing the trailing
index checksum. The stored checksum is still exposed via
PackIndexViewData::index_checksum.
Sourcepub fn parse_trusted_without_checksum(
bytes: Arc<[u8]>,
format: ObjectFormat,
) -> Result<Self>
pub fn parse_trusted_without_checksum( bytes: Arc<[u8]>, format: ObjectFormat, ) -> Result<Self>
Parse a local/trusted owned index view without the checksum or full-entry validation passes.
pub fn parse_source( bytes: Arc<dyn PackIndexByteSource>, format: ObjectFormat, ) -> Result<Self>
pub fn parse_source_without_checksum( bytes: Arc<dyn PackIndexByteSource>, format: ObjectFormat, ) -> Result<Self>
pub fn parse_trusted_source_without_checksum( bytes: Arc<dyn PackIndexByteSource>, format: ObjectFormat, ) -> Result<Self>
pub fn count(&self) -> usize
pub fn fanout(&self) -> &[u32; 256]
pub fn find(&self, oid: &ObjectId) -> Option<PackIndexLookup>
pub fn as_view(&self) -> PackIndexView<'_>
Trait Implementations§
Source§impl Clone for PackIndexViewData
impl Clone for PackIndexViewData
Source§fn clone(&self) -> PackIndexViewData
fn clone(&self) -> PackIndexViewData
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for PackIndexViewData
impl !UnwindSafe for PackIndexViewData
impl Freeze for PackIndexViewData
impl Send for PackIndexViewData
impl Sync for PackIndexViewData
impl Unpin for PackIndexViewData
impl UnsafeUnpin for PackIndexViewData
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