Trait exr::image::write::samples::WritableLevel

source ·
pub trait WritableLevel<'slf> {
    type Writer: SamplesWriter;

    // Required methods
    fn sample_type(&self) -> SampleType;
    fn create_level_writer(&'slf self, size: Vec2<usize>) -> Self::Writer;
}
Expand description

Enable an image with this single level sample grid to be written to a file. Only contained within Levels.

Required Associated Types§

source

type Writer: SamplesWriter

The type of the temporary writer for this single level of samples

Required Methods§

source

fn sample_type(&self) -> SampleType

Generate the file meta data regarding the number type of these samples

source

fn create_level_writer(&'slf self, size: Vec2<usize>) -> Self::Writer

Create a temporary writer for this single level of samples

Implementors§

source§

impl<'samples> WritableLevel<'samples> for FlatSamples

§

type Writer = FlatSamplesWriter<'samples>