Struct git_chunk::file::Index[][src]

pub struct Index {
    pub chunks: Vec<Entry>,
}
Expand description

A chunk file providing a table into the parent data.

Fields

chunks: Vec<Entry>

Validated chunks as defined by their index entries.

Implementations

The size of a single index entry in bytes

The smallest possible size of an index, consisting only of the sentinel value pointing past itself.

Find a chunk of kind and return its offset into the data if found

Find a chunk of kind and return its data slice based on its offset.

Provided a mapped file at the beginning via data, starting at toc_offset decode all chunk information to return an index with num_chunks chunks.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.