pub trait GraphicsContext {
// Required methods
fn draw_pixel(&mut self, x: i32, y: i32, color: Color);
fn draw_rect(&mut self, rect: Rect, color: Color);
fn fill_rect(&mut self, rect: Rect, color: Color);
fn clear(&mut self, color: Color);
}Expand description
Graphics context