pub trait WritableChannels<'slf> {
    type Writer: ChannelsWriter;

    // Required methods
    fn infer_channel_list(&self) -> ChannelList;
    fn infer_level_modes(&self) -> (LevelMode, RoundingMode);
    fn create_writer(&'slf self, header: &Header) -> Self::Writer;
}
Expand description

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

Required Associated Types§

source

type Writer: ChannelsWriter

The type of temporary writer

Required Methods§

source

fn infer_channel_list(&self) -> ChannelList

Generate the file meta data for this list of channel

source

fn infer_level_modes(&self) -> (LevelMode, RoundingMode)

Generate the file meta data of whether and how resolution levels should be stored in the file

source

fn create_writer(&'slf self, header: &Header) -> Self::Writer

Create a temporary writer for this list of channels

Implementors§

source§

impl<'c, Channels, Storage> WritableChannels<'c> for SpecificChannels<Storage, Channels>where Storage: 'c + GetPixel, Storage::Pixel: IntoRecursive, Channels: 'c + Sync + Clone + IntoRecursive, <Channels as IntoRecursive>::Recursive: WritableChannelsDescription<<Storage::Pixel as IntoRecursive>::Recursive>,

source§

impl<'samples, Samples> WritableChannels<'samples> for AnyChannels<Samples>where Samples: 'samples + WritableSamples<'samples>,

§

type Writer = AnyChannelsWriter<<Samples as WritableSamples<'samples>>::Writer>

source§

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

§

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