Struct git_odb::pack::data::BytesToEntriesIter[][src]

pub struct BytesToEntriesIter<R> { /* fields omitted */ }

An iterator over Entries in a byte stream.

The iterator used as part of Bundle::write_stream_to_directory(…).

Implementations

impl<R> BytesToEntriesIter<R> where
    R: BufRead
[src]

pub fn kind(&self) -> Version[src]

The pack version currently being iterated

pub fn mode(&self) -> Mode[src]

The kind of iteration

pub fn new_from_header(
    read: R,
    mode: Mode,
    compressed: EntryDataMode
) -> Result<BytesToEntriesIter<R>, Error>
[src]

Obtain an iterator from a read stream to a pack data file and configure it using mode and compressed.

Note that read is expected at the beginning of a valid pack data file with a header, entries and a trailer.

Trait Implementations

impl<R> ExactSizeIterator for BytesToEntriesIter<R> where
    R: BufRead
[src]

impl<R> Iterator for BytesToEntriesIter<R> where
    R: BufRead
[src]

type Item = Result<Entry, Error>

The type of the elements being iterated over.

Auto Trait Implementations

impl<R> RefUnwindSafe for BytesToEntriesIter<R> where
    R: RefUnwindSafe

impl<R> Send for BytesToEntriesIter<R> where
    R: Send

impl<R> Sync for BytesToEntriesIter<R> where
    R: Sync

impl<R> Unpin for BytesToEntriesIter<R> where
    R: Unpin

impl<R> UnwindSafe for BytesToEntriesIter<R> where
    R: UnwindSafe

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[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>,