1 2 3 4 5 6 7 8
use ::geom::Point; pub trait OutputDevice { fn start_line(&mut self); fn add_point(&mut self, Point); fn end_line(&mut self); fn set_size(&mut self, _w: f32, _h: f32) { } }
1 2 3 4 5 6 7 8
use ::geom::Point; pub trait OutputDevice { fn start_line(&mut self); fn add_point(&mut self, Point); fn end_line(&mut self); fn set_size(&mut self, _w: f32, _h: f32) { } }