Trait exr::image::write::layers::WritableLayers

source ·
pub trait WritableLayers<'slf> {
    type Writer: LayersWriter;

    // Required methods
    fn infer_headers(&self, image_attributes: &ImageAttributes) -> Headers;
    fn create_writer(&'slf self, headers: &[Header]) -> Self::Writer;
}
Expand description

Enables an image containing this list of layers to be written to a file.

Required Associated Types§

source

type Writer: LayersWriter

The type of temporary writer

Required Methods§

source

fn infer_headers(&self, image_attributes: &ImageAttributes) -> Headers

Generate the file meta data for this list of layers

source

fn create_writer(&'slf self, headers: &[Header]) -> Self::Writer

Create a temporary writer for this list of layers

Implementors§

source§

impl<'slf> WritableLayers<'slf> for NoneMore

source§

impl<'slf, Channels> WritableLayers<'slf> for Layers<Channels>
where Channels: WritableChannels<'slf> + 'slf,

source§

impl<'slf, Channels: WritableChannels<'slf>> WritableLayers<'slf> for Layer<Channels>

source§

type Writer = LayerWriter<<Channels as WritableChannels<'slf>>::Writer>

source§

impl<'slf, InnerLayers, Channels> WritableLayers<'slf> for Recursive<InnerLayers, Layer<Channels>>
where InnerLayers: WritableLayers<'slf>, Channels: WritableChannels<'slf>,

source§

type Writer = Recursive<<InnerLayers as WritableLayers<'slf>>::Writer, (usize, LayerWriter<<Channels as WritableChannels<'slf>>::Writer>)>