Trait WritableChannelsDescription
pub trait WritableChannelsDescription<Pixel>: Sync
A tuple containing either ChannelsDescription or
Option<ChannelsDescription> entries.
Use an Option if you want to dynamically omit a single channel (probably
only for roundtrip tests). The number of entries must match the number of
channels.
Associated Types
type RecursiveWriter: RecursivePixelWriter<Pixel>;A type that has a recursive entry for each channel in the image, which must accept the desired pixel type.
Required Methods
fn create_recursive_writer(&self, channels: &ChannelList) -> Self::RecursiveWriterCreate the temporary writer, accepting the sorted list of channels from
channel_descriptions_list.fn channel_descriptions_list(&self) -> SmallVec<[ChannelDescription; 5]>Return all the channels that should actually end up in the image, in any order.
Implementors
impl WritableChannelsDescription<NoneMore> for NoneMoreimpl<InnerDescriptions, InnerPixel, Sample: IntoNativeSample> WritableChannelsDescription<Recursive<InnerPixel, Sample>> for Recursive<InnerDescriptions, ChannelDescription> where InnerDescriptions: WritableChannelsDescription<InnerPixel>,impl<InnerDescriptions, InnerPixel, Sample: IntoNativeSample> WritableChannelsDescription<Recursive<InnerPixel, Sample>> for Recursive<InnerDescriptions, Option<ChannelDescription>> where InnerDescriptions: WritableChannelsDescription<InnerPixel>,