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§
sourcetype Reader: SamplesReader
type Reader: SamplesReader
The type of the temporary samples reader
Required Methods§
sourcefn create_sample_reader(
&self,
header: &Header,
channel: &ChannelDescription,
) -> Result<Self::Reader>
fn create_sample_reader( &self, header: &Header, channel: &ChannelDescription, ) -> Result<Self::Reader>
Create a single reader for a single channel of a layer