pub trait WritableSamples<'slf> {
type Writer: SamplesWriter;
// Required methods
fn sample_type(&self) -> SampleType;
fn infer_level_modes(&self) -> (LevelMode, RoundingMode);
fn create_samples_writer(&'slf self, header: &Header) -> Self::Writer;
}
Expand description
Enable an image with this sample grid to be written to a file.
Also can contain multiple resolution levels.
Usually contained within Channels
.
Required Associated Types§
sourcetype Writer: SamplesWriter
type Writer: SamplesWriter
The type of the temporary writer for this sample storage
Required Methods§
sourcefn sample_type(&self) -> SampleType
fn sample_type(&self) -> SampleType
Generate the file meta data regarding the number type of this storage
sourcefn infer_level_modes(&self) -> (LevelMode, RoundingMode)
fn infer_level_modes(&self) -> (LevelMode, RoundingMode)
Generate the file meta data regarding resolution levels
sourcefn create_samples_writer(&'slf self, header: &Header) -> Self::Writer
fn create_samples_writer(&'slf self, header: &Header) -> Self::Writer
Create a temporary writer for this sample storage