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
sourceimpl<ChannelsReader: Clone> Clone for AllLayersReader<ChannelsReader>
impl<ChannelsReader: Clone> Clone for AllLayersReader<ChannelsReader>
sourcefn clone(&self) -> AllLayersReader<ChannelsReader>
fn clone(&self) -> AllLayersReader<ChannelsReader>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<ChannelsReader: Debug> Debug for AllLayersReader<ChannelsReader>
impl<ChannelsReader: Debug> Debug for AllLayersReader<ChannelsReader>
sourceimpl<C> LayersReader for AllLayersReader<C> where
C: ChannelsReader,
impl<C> LayersReader for AllLayersReader<C> where
C: ChannelsReader,
sourcefn 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
sourcefn 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
sourcefn into_layers(self) -> Self::Layers
fn into_layers(self) -> Self::Layers
Deliver the final accumulated layers for the image
sourceimpl<ChannelsReader: PartialEq> PartialEq<AllLayersReader<ChannelsReader>> for AllLayersReader<ChannelsReader>
impl<ChannelsReader: PartialEq> PartialEq<AllLayersReader<ChannelsReader>> for AllLayersReader<ChannelsReader>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &AllLayersReader<ChannelsReader>) -> bool
fn ne(&self, other: &AllLayersReader<ChannelsReader>) -> bool
This method tests for !=
.
impl<ChannelsReader> StructuralPartialEq for AllLayersReader<ChannelsReader>
Auto Trait Implementations
impl<ChannelsReader> RefUnwindSafe for AllLayersReader<ChannelsReader> where
ChannelsReader: RefUnwindSafe,
impl<ChannelsReader> Send for AllLayersReader<ChannelsReader> where
ChannelsReader: Send,
impl<ChannelsReader> Sync for AllLayersReader<ChannelsReader> where
ChannelsReader: Sync,
impl<ChannelsReader> Unpin for AllLayersReader<ChannelsReader> where
ChannelsReader: Unpin,
impl<ChannelsReader> UnwindSafe for AllLayersReader<ChannelsReader> where
ChannelsReader: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more