Struct git_odb::pack::tree::traverse::Context[][src]

pub struct Context<'a, S> {
    pub entry: &'a Entry,
    pub entry_end: u64,
    pub decompressed: &'a [u8],
    pub state: &'a mut S,
    pub level: u16,
}

Additional context passed to the inspect_object(…) function of the Tree::traverse() method.

Fields

entry: &'a Entry

The pack entry describing the object

entry_end: u64

The offset at which entry ends in the pack, useful to learn about the exact range of entry within the pack.

decompressed: &'a [u8]

The decompressed object itself, ready to be decoded.

state: &'a mut S

Custom state known to the function

level: u16

The depth at which this object resides in the delta-tree. It represents the amount of base objects, with 0 indicating an ‘undeltified’ object, and higher values indicating delta objects with the given amount of bases.

Auto Trait Implementations

impl<'a, S> RefUnwindSafe for Context<'a, S> where
    S: RefUnwindSafe

impl<'a, S> Send for Context<'a, S> where
    S: Send

impl<'a, S> Sync for Context<'a, S> where
    S: Sync

impl<'a, S> Unpin for Context<'a, S>

impl<'a, S> !UnwindSafe for Context<'a, S>

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> 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> Pointable for T

type Init = T

The type for initializers.

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> 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>,