pub type Layers<Channels> = SmallVec<[Layer<Channels>; 2]>;Expand description
A list of layers. Channels can be SpecificChannels or AnyChannels.
Aliased Type§
pub struct Layers<Channels> { /* private fields */ }Trait Implementations§
Source§impl<'slf, Channels> WritableLayers<'slf> for Layers<Channels>where
Channels: WritableChannels<'slf> + 'slf,
impl<'slf, Channels> WritableLayers<'slf> for Layers<Channels>where
Channels: WritableChannels<'slf> + 'slf,
Source§type Writer = AllLayersWriter<<Channels as WritableChannels<'slf>>::Writer>
type Writer = AllLayersWriter<<Channels as WritableChannels<'slf>>::Writer>
The type of temporary writer
Source§fn infer_headers(&self, image_attributes: &ImageAttributes) -> Headers
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
fn create_writer(&'slf self, headers: &[Header]) -> Self::Writer
Create a temporary writer for this list of layers