pub struct FirstValidLayerReader<ChannelsReader> {
layer_reader: LayerReader<ChannelsReader>,
layer_index: usize,
}
Expand description
Processes pixel blocks from a file and accumulates them into a single layers, using only the first.
For example, ChannelsReader
can be
SpecificChannelsReader
or AnyChannelsReader<FlatSamplesReader>
.
Fields§
§layer_reader: LayerReader<ChannelsReader>
§layer_index: usize
Trait Implementations§
source§impl<ChannelsReader: Clone> Clone for FirstValidLayerReader<ChannelsReader>
impl<ChannelsReader: Clone> Clone for FirstValidLayerReader<ChannelsReader>
source§fn clone(&self) -> FirstValidLayerReader<ChannelsReader>
fn clone(&self) -> FirstValidLayerReader<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 FirstValidLayerReader<ChannelsReader>
impl<ChannelsReader: Debug> Debug for FirstValidLayerReader<ChannelsReader>
source§impl<C> LayersReader for FirstValidLayerReader<C>where
C: ChannelsReader,
impl<C> LayersReader for FirstValidLayerReader<C>where
C: ChannelsReader,
§type Layers = Layer<<C as ChannelsReader>::Channels>
type Layers = Layer<<C as ChannelsReader>::Channels>
The type of resulting layers
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 for FirstValidLayerReader<ChannelsReader>
impl<ChannelsReader: PartialEq> PartialEq for FirstValidLayerReader<ChannelsReader>
source§fn eq(&self, other: &FirstValidLayerReader<ChannelsReader>) -> bool
fn eq(&self, other: &FirstValidLayerReader<ChannelsReader>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<ChannelsReader> StructuralPartialEq for FirstValidLayerReader<ChannelsReader>
Auto Trait Implementations§
impl<ChannelsReader> Freeze for FirstValidLayerReader<ChannelsReader>where
ChannelsReader: Freeze,
impl<ChannelsReader> RefUnwindSafe for FirstValidLayerReader<ChannelsReader>where
ChannelsReader: RefUnwindSafe,
impl<ChannelsReader> Send for FirstValidLayerReader<ChannelsReader>where
ChannelsReader: Send,
impl<ChannelsReader> Sync for FirstValidLayerReader<ChannelsReader>where
ChannelsReader: Sync,
impl<ChannelsReader> Unpin for FirstValidLayerReader<ChannelsReader>where
ChannelsReader: Unpin,
impl<ChannelsReader> UnwindSafe for FirstValidLayerReader<ChannelsReader>where
ChannelsReader: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more