BufferView

Trait BufferView 

Source
pub trait BufferView<const BITS: usize, const FRAMES: usize> {
    // Required methods
    fn window(&self) -> Rectangle;
    fn data(&self) -> [&[u8]; FRAMES];
}
Expand description

Provides a view into a display buffer’s data. This buffer is encoded into a set number of frames and bits per pixel.

Required Methods§

Source

fn window(&self) -> Rectangle

Returns the display window covered by this buffer.

Source

fn data(&self) -> [&[u8]; FRAMES]

Returns the data to be written to this window.

Implementors§

Source§

impl<const L: usize> BufferView<1, 1> for BinaryBuffer<L>

Source§

impl<const L: usize> BufferView<1, 2> for Gray2SplitBuffer<L>