Struct SequentialBlockDecompressor

pub struct SequentialBlockDecompressor<R: ChunksReader> { /* private fields */ }

Read all chunks from the file, decompressing each chunk immediately. Implements iterator.

Implementations

impl<R: ChunksReader> SequentialBlockDecompressor<R>

fn meta_data(&self) -> &MetaData

The extracted meta data from the image file.

fn decompress_next_block(&mut self) -> Option<Result<UncompressedBlock>>

Read and then decompress a single block of pixels from the byte source.

Trait Implementations

impl<R: ChunksReader> ExactSizeIterator for SequentialBlockDecompressor<R>

impl<R: ChunksReader> Iterator for SequentialBlockDecompressor<R>

type Item = Result<UncompressedBlock, Error>;
fn next(&mut self) -> Option<Self::Item>
fn size_hint(&self) -> (usize, Option<usize>)

impl<R: Debug + ChunksReader> Debug for SequentialBlockDecompressor<R>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<R> Freeze for SequentialBlockDecompressor<R> where R: Freeze,

impl<R> RefUnwindSafe for SequentialBlockDecompressor<R> where R: RefUnwindSafe,

impl<R> Send for SequentialBlockDecompressor<R> where R: Send,

impl<R> Sync for SequentialBlockDecompressor<R> where R: Sync,

impl<R> Unpin for SequentialBlockDecompressor<R> where R: Unpin,

impl<R> UnsafeUnpin for SequentialBlockDecompressor<R> where R: UnsafeUnpin,

impl<R> UnwindSafe for SequentialBlockDecompressor<R> where R: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for SequentialBlockDecompressor<R> where I: Iterator,

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for SequentialBlockDecompressor<R> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for SequentialBlockDecompressor<R> where ST: ?Sized, DT: ?Sized,

impl<T> Any for SequentialBlockDecompressor<R> where T: 'static + ?Sized,

impl<T> Borrow<T> for SequentialBlockDecompressor<R> where T: ?Sized,

impl<T> BorrowMut<T> for SequentialBlockDecompressor<R> where T: ?Sized,

impl<T> From<T> for SequentialBlockDecompressor<R>

impl<T> Pointable for SequentialBlockDecompressor<R>

impl<T> Read<Exclusive, BecauseExclusive> for SequentialBlockDecompressor<R> where T: ?Sized,

impl<T, U> Into<U> for SequentialBlockDecompressor<R> where U: From<T>,

impl<T, U> TryFrom<U> for SequentialBlockDecompressor<R> where U: Into<T>,

impl<T, U> TryInto<U> for SequentialBlockDecompressor<R> where U: TryFrom<T>,