pub type Layers<Channels> = SmallVec<[Layer<Channels>; 2]>;
Expand description
A list of layers. Channels
can be SpecificChannels
or AnyChannels
.
Aliased Type§
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§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
§type Writer = AllLayersWriter<<Channels as WritableChannels<'slf>>::Writer>
type Writer = AllLayersWriter<<Channels as WritableChannels<'slf>>::Writer>
The type of temporary writer
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