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§
sourcefn write_pixels<FullPixel>(
&self,
bytes: &mut [u8],
pixels: &[FullPixel],
get_pixel: impl Fn(&FullPixel) -> &Pixel,
)
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.