pub trait InputBlockIterator<'a, const N: usize>: FallibleIterator<Item = Self::Block, Error = InputError> {
    type Block: InputBlock<'a, N>;

    // Required method
    fn offset(&mut self, count: isize);
}
Expand description

An iterator over blocks of input of size N. Implementations MUST guarantee that the blocks returned from next are exactly of size N.

Required Associated Types§

source

type Block: InputBlock<'a, N>

The type of blocks returned.

Required Methods§

source

fn offset(&mut self, count: isize)

Offset the iterator by count full blocks forward.

The count parameter must be greater than 0.

Implementors§

source§

impl<'a, R: Read, const N: usize> InputBlockIterator<'a, N> for BufferedInputBlockIterator<'a, R, N>

source§

impl<'a, const N: usize> InputBlockIterator<'a, N> for BorrowedBytesBlockIterator<'a, N>

§

type Block = &'a [u8]