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

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

Implementations

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

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

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

pub fn new_from_header(
    read: R,
    trailer: Mode,
    compressed: CompressedBytesMode
) -> Result<Iter<R>, Error>
[src]

Note that read is expected at the beginning of a valid pack file with header and trailer If verify is true, we will assert the SHA1 is actually correct before returning the last entry. Otherwise bit there is a chance that some kinds of bitrot or inconsistencies will not be detected.

Trait Implementations

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

impl<R> Iterator for Iter<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 Iter<R> where
    R: RefUnwindSafe

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

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

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

impl<R> UnwindSafe for Iter<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> 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, 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>,