Trait exr::image::read::any_channels::ReadSamples
source · [−]pub trait ReadSamples {
type Reader: SamplesReader;
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
type Reader: SamplesReader
type Reader: SamplesReader
The type of the temporary samples reader
Required Methods
fn 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