Trait exr::image::write::channels::RecursivePixelWriter

source ·
pub trait RecursivePixelWriter<Pixel>: Sync {
    // Required method
    fn write_pixels<FullPixel>(
        &self,
        bytes: &mut [u8],
        pixels: &[FullPixel],
        get_pixel: impl Fn(&FullPixel) -> &Pixel,
    );
}
Expand description

Write pixels to a slice of bytes. The top level writer contains all the other channels, the most inner channel is NoneMore.

Required Methods§

source

fn write_pixels<FullPixel>( &self, bytes: &mut [u8], pixels: &[FullPixel], get_pixel: impl Fn(&FullPixel) -> &Pixel, )

Write pixels to a slice of bytes. Recursively do this for all channels.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl RecursivePixelWriter<NoneMore> for NoneMore

source§

impl<Inner, InnerPixel, Sample> RecursivePixelWriter<Recursive<InnerPixel, Sample>> for Recursive<Inner, Option<SampleWriter<Sample>>>
where Inner: RecursivePixelWriter<InnerPixel>, Sample: IntoNativeSample,

source§

impl<Inner, InnerPixel, Sample: IntoNativeSample> RecursivePixelWriter<Recursive<InnerPixel, Sample>> for Recursive<Inner, SampleWriter<Sample>>
where Inner: RecursivePixelWriter<InnerPixel>,