Struct OnProgressChunksReader
pub struct OnProgressChunksReader<R, F> { /* private fields */ }
Decode chunks in the file without seeking.
Calls the supplied closure for each chunk.
The decoded chunks can be decompressed by calling
decompress_parallel, decompress_sequential, or
sequential_decompressor. Also contains the image meta data.
Trait Implementations
impl<R, F> ChunksReader for OnProgressChunksReader<R, F>
where
R: ChunksReader,
F: FnMut(f64),
fn meta_data(&self) -> &MetaDatafn expected_chunk_count(&self) -> usize
impl<R, F> ExactSizeIterator for OnProgressChunksReader<R, F>
where
R: ChunksReader,
F: FnMut(f64),
impl<R, F> Iterator for OnProgressChunksReader<R, F>
where
R: ChunksReader,
F: FnMut(f64),
type Item = Result<Chunk, Error>;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)
impl<R: Debug, F: Debug> Debug for OnProgressChunksReader<R, F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result