trait FrameBufferDraw {
    // Required methods
    fn read_pixel(&self, memory: &[u8], pos: (usize, usize)) -> Option<Pixel>;
    fn write_pixel(
        &self,
        memory: &mut [u8],
        pos: (usize, usize),
        color: Pixel
    ) -> Option<()>;
}

Required Methods§

source

fn read_pixel(&self, memory: &[u8], pos: (usize, usize)) -> Option<Pixel>

source

fn write_pixel( &self, memory: &mut [u8], pos: (usize, usize), color: Pixel ) -> Option<()>

Implementors§