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§
sourcetype Writer: LayersWriter
type Writer: LayersWriter
The type of temporary writer
Required Methods§
sourcefn 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
sourcefn 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