Struct AllChunksReader

pub struct AllChunksReader<R> { /* private fields */ }

Decode all chunks in the file without seeking.

The decoded chunks can be decompressed by calling decompress_parallel, decompress_sequential, or sequential_decompressor or parallel_decompressor. Call on_progress to have a callback with each block. Also contains the image meta data.

Trait Implementations

impl<R: Debug> Debug for AllChunksReader<R>

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

impl<R: Read + Seek> ChunksReader for AllChunksReader<R>

fn meta_data(&self) -> &MetaData
fn expected_chunk_count(&self) -> usize

impl<R: Read + Seek> ExactSizeIterator for AllChunksReader<R>

impl<R: Read + Seek> Iterator for AllChunksReader<R>

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

Auto Trait Implementations

impl<R> !RefUnwindSafe for AllChunksReader<R>

impl<R> !UnwindSafe for AllChunksReader<R>

impl<R> Freeze for AllChunksReader<R> where PeekRead<Tracking<R>>: Freeze,

impl<R> Send for AllChunksReader<R> where PeekRead<Tracking<R>>: Send,

impl<R> Sync for AllChunksReader<R> where PeekRead<Tracking<R>>: Sync,

impl<R> Unpin for AllChunksReader<R> where PeekRead<Tracking<R>>: Unpin,

impl<R> UnsafeUnpin for AllChunksReader<R> where PeekRead<Tracking<R>>: UnsafeUnpin,

Blanket Implementations

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

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

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

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

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for AllChunksReader<R>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for AllChunksReader<R>

const ALIGN: usize = _;
type Init = T;
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

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

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>