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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.