pub fn write(page: Page, col: usize, row: usize, color: Color) -> Option<()> {
    match page {
      Page::Zero => Self::PAGE0_PIXELS,
      Page::One => Self::PAGE1_PIXELS,
    }
    .get(col + row * Self::WIDTH)
    .map(|va| va.write(color))
  }
/// Writes a color to the pixel specified.
///
/// ## Failure
///
/// Gives `None` if out of bounds
Writes a color to the pixel specified.
Writes a color to the pixel specified .
pub fn write(page: Page, col: usize, row: usize, color: Color) -> Option<()> {
    match page {
      Page::Zero => Self::PAGE0_PIXELS,
      Page::One => Self::PAGE1_PIXELS,
    }
    .get(col + row * Self::WIDTH)
    .map(|va| va.write(color))
  }
pub fn write ( page : Page , col : usize , row : usize , color : Color ) -> Option < ( ) > { match page { Page :: Zero => Self :: PAGE0_PIXELS , Page :: One => Self :: PAGE1_PIXELS , } . get ( col + row * Self :: WIDTH ) . map ( | va | va . write ( color ) ) }
Writes a color to the pixel specified.
Writes a color to the pixel specified .
page
Page
col
usize
row
usize
color
Color
page
Page
col
usize
row
usize
color
Color
failure
Gives `None` if out of bounds
Gives ` None ` if out of bounds