pub trait FrameBufferBackend {
    type Color: PixelColor;

    fn set(&mut self, index: usize, color: Self::Color);
    fn get(&self, index: usize) -> Self::Color;
    fn nr_elements(&self) -> usize;
}
Expand description

This trait marks the requirements for backends for a FrameBuf.

In a basic scenario this is just some memory. But one could implement more elaborate backends which allow manipulation of the data on the fly.

Required Associated Types

Required Methods

Sets a pixel to the respective color

Returns a pixels color

Nr of elements in the backend

Implementations on Foreign Types

Implementors