Trait plasma::PixelBuffer
source · pub trait PixelBuffer {
const PIXEL_BYTES: usize;
// Required method
fn put_pixel<'a, I: Iterator<Item = &'a mut u8>>(
writer: &mut I,
pixel: PixelRgb,
);
}
Expand description
The trait for putting pixels into byte buffers.
Required Associated Constants§
sourceconst PIXEL_BYTES: usize
const PIXEL_BYTES: usize
Specifies how many bytes a single plasma pixel occupies.
Required Methods§
Object Safety§
This trait is not object safe.