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§

source

const PIXEL_BYTES: usize

Specifies how many bytes a single plasma pixel occupies.

Required Methods§

source

fn put_pixel<'a, I: Iterator<Item = &'a mut u8>>( writer: &mut I, pixel: PixelRgb, )

Puts bytes from a pixel into the provided buffer using a provided writer.

Object Safety§

This trait is not object safe.

Implementors§