Trait ReadChannels
pub trait ReadChannels<'s>
A template that creates a ChannelsReader once for all channels per
layer.
Associated Types
type Reader: ChannelsReader;The type of the temporary channels reader
Required Methods
fn create_channels_reader(&'s self, header: &Header) -> Result<Self::Reader>Create a single reader for all channels of a specific layer
Provided Methods
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.
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.
Implementors
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, S: 's + ReadSamples> ReadChannels<'s> for ReadAnyChannels<S>