pub trait RenderSurface { // Required methods fn size(&self) -> (u32, u32); fn present(&mut self, pixels: &[Color]) -> Result<()>; }