[][src]Struct git_odb::pack::data::iter::Entry

pub struct Entry {
    pub header: Header,
    pub header_size: u16,
    pub pack_offset: u64,
    pub compressed: Option<Vec<u8>>,
    pub compressed_size: u64,
    pub crc32: Option<u32>,
    pub decompressed_size: u64,
    pub trailer: Option<Id>,
}

An item of the iteration produced by Iter

Fields

header: Header

The header of a pack entry

header_size: u16

The amount of bytes used to encode the header. pack_offset + header_size is the beginning of the compressed data in the pack.

pack_offset: u64

The first byte of the entry at which the header can be read.

compressed: Option<Vec<u8>>

The bytes consumed while producing decompressed These do not contain the header, which makes it possible to easily replace a RefDelta with offset deltas when resolving thin packs. Depends on CompressionMode when the iterator is initialized.

compressed_size: u64

The amount of bytes the compressed portion of the entry takes, i.e. the portion behind behind the header.

crc32: Option<u32>

The CRC32 over the complete entry, that is encoded header and compressed object data. Depends on CompressionMode when the iterator is initialized

decompressed_size: u64

The amount of decompressed bytes of the entry.

trailer: Option<Id>

Set for the last object in the iteration, providing the hash over all bytes of the iteration for use as trailer in a pack or to verify it matches the trailer.

Trait Implementations

impl Clone for Entry[src]

impl Debug for Entry[src]

impl<'de> Deserialize<'de> for Entry[src]

impl Eq for Entry[src]

impl Hash for Entry[src]

impl Ord for Entry[src]

impl PartialEq<Entry> for Entry[src]

impl PartialOrd<Entry> for Entry[src]

impl Serialize for Entry[src]

impl StructuralEq for Entry[src]

impl StructuralPartialEq for Entry[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,