pub trait IterReadItem {
    type Buffer: Default;

    fn read<I: Iterator<Item = Self>>(
        target: &mut [u8],
        it: &mut I,
        buf: &mut Self::Buffer
    ) -> Result<usize>
    where
        Self: Sized
; }
Expand description

Trait that should be implemented for any type which can be used in an iterator given to IterRead.

Required Associated Types

Represents the type of buffer that the adapter will use. Can be () if no buffer is required.

Required Methods

Implements Read::read() for the specific type Self.

Implementations on Foreign Types

Implementors