1 2 3 4 5 6 7 8
use crate::types::Rect; use super::command::DrawCommand; pub trait Renderer { fn draw(&mut self, cmd: &DrawCommand, clip: &Rect); fn flush(&mut self); }