pub struct AllLayersReader<ChannelsReader> { /* private fields */ }
Expand description
Processes pixel blocks from a file and accumulates them into a list of layers.
For example, ChannelsReader
can be
[SpecificChannelsReader
] or [AnyChannelsReader<FlatSamplesReader>
].
Trait Implementations§
source§impl<ChannelsReader: Clone> Clone for AllLayersReader<ChannelsReader>
impl<ChannelsReader: Clone> Clone for AllLayersReader<ChannelsReader>
source§fn clone(&self) -> AllLayersReader<ChannelsReader>
fn clone(&self) -> AllLayersReader<ChannelsReader>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<ChannelsReader: Debug> Debug for AllLayersReader<ChannelsReader>
impl<ChannelsReader: Debug> Debug for AllLayersReader<ChannelsReader>
source§impl<C> LayersReader for AllLayersReader<C>where
C: ChannelsReader,
impl<C> LayersReader for AllLayersReader<C>where C: ChannelsReader,
source§fn filter_block(
&self,
_: &MetaData,
tile: TileCoordinates,
block: BlockIndex
) -> bool
fn filter_block( &self, _: &MetaData, tile: TileCoordinates, block: BlockIndex ) -> bool
Specify whether a single block of pixels should be loaded from the file
source§fn read_block(
&mut self,
headers: &[Header],
block: UncompressedBlock
) -> UnitResult
fn read_block( &mut self, headers: &[Header], block: UncompressedBlock ) -> UnitResult
Load a single pixel block, which has not been filtered, into the reader, accumulating the layer
source§fn into_layers(self) -> Self::Layers
fn into_layers(self) -> Self::Layers
Deliver the final accumulated layers for the image
source§impl<ChannelsReader: PartialEq> PartialEq<AllLayersReader<ChannelsReader>> for AllLayersReader<ChannelsReader>
impl<ChannelsReader: PartialEq> PartialEq<AllLayersReader<ChannelsReader>> for AllLayersReader<ChannelsReader>
source§fn eq(&self, other: &AllLayersReader<ChannelsReader>) -> bool
fn eq(&self, other: &AllLayersReader<ChannelsReader>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.