Trait exr::image::read::any_channels::ReadSamples

source ·
pub trait ReadSamples {
    type Reader: SamplesReader;

    // Required method
    fn create_sample_reader(
        &self,
        header: &Header,
        channel: &ChannelDescription,
    ) -> Result<Self::Reader>;
}
Expand description

A template that creates a new [SampleReader] for each channel in each layer.

Required Associated Types§

source

type Reader: SamplesReader

The type of the temporary samples reader

Required Methods§

source

fn create_sample_reader( &self, header: &Header, channel: &ChannelDescription, ) -> Result<Self::Reader>

Create a single reader for a single channel of a layer

Implementors§