Struct exr::image::read::specific_channels::CollectPixels
source · pub struct CollectPixels<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel> {
read_channels: ReadChannels,
create_pixels: CreatePixels,
set_pixel: SetPixel,
px: PhantomData<(Pixel, PixelStorage)>,
}
Expand description
Specifies how to collect all the specified channels into a number of individual pixels.
Fields§
§read_channels: ReadChannels
§create_pixels: CreatePixels
§set_pixel: SetPixel
§px: PhantomData<(Pixel, PixelStorage)>
Trait Implementations§
source§impl<ReadChannels: Clone, Pixel: Clone, PixelStorage: Clone, CreatePixels: Clone, SetPixel: Clone> Clone for CollectPixels<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel>
impl<ReadChannels: Clone, Pixel: Clone, PixelStorage: Clone, CreatePixels: Clone, SetPixel: Clone> Clone for CollectPixels<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel>
source§fn clone(
&self,
) -> CollectPixels<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel>
fn clone( &self, ) -> CollectPixels<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel>
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<ReadChannels: Debug, Pixel: Debug, PixelStorage: Debug, CreatePixels: Debug, SetPixel: Debug> Debug for CollectPixels<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel>
impl<ReadChannels: Debug, Pixel: Debug, PixelStorage: Debug, CreatePixels: Debug, SetPixel: Debug> Debug for CollectPixels<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel>
source§impl<'s, InnerChannels, Pixel, PixelStorage, CreatePixels, SetPixel> ReadChannels<'s> for CollectPixels<InnerChannels, Pixel, PixelStorage, CreatePixels, SetPixel>where
InnerChannels: ReadSpecificChannel,
<InnerChannels::RecursivePixelReader as RecursivePixelReader>::RecursivePixel: IntoTuple<Pixel>,
<InnerChannels::RecursivePixelReader as RecursivePixelReader>::RecursiveChannelDescriptions: IntoNonRecursive,
CreatePixels: Fn(Vec2<usize>, &<<InnerChannels::RecursivePixelReader as RecursivePixelReader>::RecursiveChannelDescriptions as IntoNonRecursive>::NonRecursive) -> PixelStorage,
SetPixel: Fn(&mut PixelStorage, Vec2<usize>, Pixel) + 's,
impl<'s, InnerChannels, Pixel, PixelStorage, CreatePixels, SetPixel> ReadChannels<'s> for CollectPixels<InnerChannels, Pixel, PixelStorage, CreatePixels, SetPixel>where
InnerChannels: ReadSpecificChannel,
<InnerChannels::RecursivePixelReader as RecursivePixelReader>::RecursivePixel: IntoTuple<Pixel>,
<InnerChannels::RecursivePixelReader as RecursivePixelReader>::RecursiveChannelDescriptions: IntoNonRecursive,
CreatePixels: Fn(Vec2<usize>, &<<InnerChannels::RecursivePixelReader as RecursivePixelReader>::RecursiveChannelDescriptions as IntoNonRecursive>::NonRecursive) -> PixelStorage,
SetPixel: Fn(&mut PixelStorage, Vec2<usize>, Pixel) + 's,
§type Reader = SpecificChannelsReader<PixelStorage, &'s SetPixel, <InnerChannels as ReadSpecificChannel>::RecursivePixelReader, Pixel>
type Reader = SpecificChannelsReader<PixelStorage, &'s SetPixel, <InnerChannels as ReadSpecificChannel>::RecursivePixelReader, Pixel>
The type of the temporary channels reader
source§fn create_channels_reader(&'s self, header: &Header) -> Result<Self::Reader>
fn create_channels_reader(&'s self, header: &Header) -> Result<Self::Reader>
Create a single reader for all channels of a specific layer
source§fn first_valid_layer(self) -> ReadFirstValidLayer<Self>where
Self: Sized,
fn first_valid_layer(self) -> ReadFirstValidLayer<Self>where
Self: Sized,
Read only the first layer which meets the previously specified requirements
For example, skips layers with deep data, if specified earlier.
Aborts if the image contains no layers.
source§fn all_layers(self) -> ReadAllLayers<Self>where
Self: Sized,
fn all_layers(self) -> ReadAllLayers<Self>where
Self: Sized,
Reads all layers, including an empty list. Aborts if any of the layers are invalid,
even if only one of the layers contains unexpected data.
impl<ReadChannels: Copy, Pixel: Copy, PixelStorage: Copy, CreatePixels: Copy, SetPixel: Copy> Copy for CollectPixels<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel>
Auto Trait Implementations§
impl<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel> Freeze for CollectPixels<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel>
impl<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel> RefUnwindSafe for CollectPixels<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel>where
ReadChannels: RefUnwindSafe,
CreatePixels: RefUnwindSafe,
SetPixel: RefUnwindSafe,
Pixel: RefUnwindSafe,
PixelStorage: RefUnwindSafe,
impl<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel> Send for CollectPixels<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel>
impl<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel> Sync for CollectPixels<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel>
impl<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel> Unpin for CollectPixels<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel>
impl<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel> UnwindSafe for CollectPixels<ReadChannels, Pixel, PixelStorage, CreatePixels, SetPixel>where
ReadChannels: UnwindSafe,
CreatePixels: UnwindSafe,
SetPixel: UnwindSafe,
Pixel: UnwindSafe,
PixelStorage: 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