Trait exr::image::write::samples::WritableSamples [−][src]
pub trait WritableSamples<'slf> {
type Writer: SamplesWriter;
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.
Associated Types
type Writer: SamplesWriter[src]
type Writer: SamplesWriter[src]The type of the temporary writer for this sample storage
Required methods
fn sample_type(&self) -> SampleType[src]
fn sample_type(&self) -> SampleType[src]Generate the file meta data regarding the number type of this storage
fn infer_level_modes(&self) -> (LevelMode, RoundingMode)[src]
fn infer_level_modes(&self) -> (LevelMode, RoundingMode)[src]Generate the file meta data regarding resolution levels
fn create_samples_writer(&'slf self, header: &Header) -> Self::Writer[src]
fn create_samples_writer(&'slf self, header: &Header) -> Self::Writer[src]Create a temporary writer for this sample storage
Implementors
impl<'samples> WritableSamples<'samples> for FlatSamples[src]
impl<'samples> WritableSamples<'samples> for FlatSamples[src]fn sample_type(&self) -> SampleType[src]
fn infer_level_modes(&self) -> (LevelMode, RoundingMode)[src]
type Writer = FlatSamplesWriter<'samples>
fn create_samples_writer(&'samples self, header: &Header) -> Self::Writer[src]
impl<'samples, LevelSamples> WritableSamples<'samples> for Levels<LevelSamples> where
LevelSamples: WritableLevel<'samples>, [src]
impl<'samples, LevelSamples> WritableSamples<'samples> for Levels<LevelSamples> where
LevelSamples: WritableLevel<'samples>, [src]