Struct exr::image::read::specific_channels::SpecificChannelsReader
source · pub struct SpecificChannelsReader<PixelStorage, SetPixel, PixelReader, Pixel> {
set_pixel: SetPixel,
pixel_storage: PixelStorage,
pixel_reader: PixelReader,
px: PhantomData<Pixel>,
}
Expand description
The reader that holds the temporary data that is required to read some specified channels.
Fields§
§set_pixel: SetPixel
§pixel_storage: PixelStorage
§pixel_reader: PixelReader
§px: PhantomData<Pixel>
Trait Implementations§
source§impl<PixelStorage, SetPixel, PxReader, Pixel> ChannelsReader for SpecificChannelsReader<PixelStorage, SetPixel, PxReader, Pixel>where
PxReader: RecursivePixelReader,
PxReader::RecursivePixel: IntoTuple<Pixel>,
PxReader::RecursiveChannelDescriptions: IntoNonRecursive,
SetPixel: Fn(&mut PixelStorage, Vec2<usize>, Pixel),
impl<PixelStorage, SetPixel, PxReader, Pixel> ChannelsReader for SpecificChannelsReader<PixelStorage, SetPixel, PxReader, Pixel>where
PxReader: RecursivePixelReader,
PxReader::RecursivePixel: IntoTuple<Pixel>,
PxReader::RecursiveChannelDescriptions: IntoNonRecursive,
SetPixel: Fn(&mut PixelStorage, Vec2<usize>, Pixel),
source§type Channels = SpecificChannels<PixelStorage, <<PxReader as RecursivePixelReader>::RecursiveChannelDescriptions as IntoNonRecursive>::NonRecursive>
type Channels = SpecificChannels<PixelStorage, <<PxReader as RecursivePixelReader>::RecursiveChannelDescriptions as IntoNonRecursive>::NonRecursive>
The type of the resulting channel collection
source§fn filter_block(&self, tile: TileCoordinates) -> bool
fn filter_block(&self, tile: TileCoordinates) -> bool
Specify whether a single block of pixels should be loaded from the file
source§fn read_block(
&mut self,
header: &Header,
block: UncompressedBlock,
) -> UnitResult
fn read_block( &mut self, header: &Header, block: UncompressedBlock, ) -> UnitResult
Load a single pixel block, which has not been filtered, into the reader, accumulating the channel data
source§fn into_channels(self) -> Self::Channels
fn into_channels(self) -> Self::Channels
Deliver the final accumulated channel collection for the image
source§impl<PixelStorage: Clone, SetPixel: Clone, PixelReader: Clone, Pixel: Clone> Clone for SpecificChannelsReader<PixelStorage, SetPixel, PixelReader, Pixel>
impl<PixelStorage: Clone, SetPixel: Clone, PixelReader: Clone, Pixel: Clone> Clone for SpecificChannelsReader<PixelStorage, SetPixel, PixelReader, Pixel>
source§fn clone(
&self,
) -> SpecificChannelsReader<PixelStorage, SetPixel, PixelReader, Pixel>
fn clone( &self, ) -> SpecificChannelsReader<PixelStorage, SetPixel, PixelReader, Pixel>
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<PixelStorage: Debug, SetPixel: Debug, PixelReader: Debug, Pixel: Debug> Debug for SpecificChannelsReader<PixelStorage, SetPixel, PixelReader, Pixel>
impl<PixelStorage: Debug, SetPixel: Debug, PixelReader: Debug, Pixel: Debug> Debug for SpecificChannelsReader<PixelStorage, SetPixel, PixelReader, Pixel>
impl<PixelStorage: Copy, SetPixel: Copy, PixelReader: Copy, Pixel: Copy> Copy for SpecificChannelsReader<PixelStorage, SetPixel, PixelReader, Pixel>
Auto Trait Implementations§
impl<PixelStorage, SetPixel, PixelReader, Pixel> Freeze for SpecificChannelsReader<PixelStorage, SetPixel, PixelReader, Pixel>
impl<PixelStorage, SetPixel, PixelReader, Pixel> RefUnwindSafe for SpecificChannelsReader<PixelStorage, SetPixel, PixelReader, Pixel>where
SetPixel: RefUnwindSafe,
PixelStorage: RefUnwindSafe,
PixelReader: RefUnwindSafe,
Pixel: RefUnwindSafe,
impl<PixelStorage, SetPixel, PixelReader, Pixel> Send for SpecificChannelsReader<PixelStorage, SetPixel, PixelReader, Pixel>
impl<PixelStorage, SetPixel, PixelReader, Pixel> Sync for SpecificChannelsReader<PixelStorage, SetPixel, PixelReader, Pixel>
impl<PixelStorage, SetPixel, PixelReader, Pixel> Unpin for SpecificChannelsReader<PixelStorage, SetPixel, PixelReader, Pixel>
impl<PixelStorage, SetPixel, PixelReader, Pixel> UnwindSafe for SpecificChannelsReader<PixelStorage, SetPixel, PixelReader, Pixel>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)