pub trait DrawingOutput: PineOutput {
// Required methods
fn add_linefill(&mut self, linefill: LinefillObject) -> usize;
fn get_linefill(&self, id: usize) -> Option<&LinefillObject>;
fn get_linefill_mut(&mut self, id: usize) -> Option<&mut LinefillObject>;
fn delete_linefill(&mut self, id: usize) -> bool;
fn add_polyline(&mut self, polyline: PolylineObject) -> usize;
fn delete_polyline(&mut self, id: usize) -> bool;
}Expand description
One extension trait recording both linefill and polyline drawings, which
share a sink since neither carries much state.
Required Methods§
fn add_linefill(&mut self, linefill: LinefillObject) -> usize
fn get_linefill(&self, id: usize) -> Option<&LinefillObject>
fn get_linefill_mut(&mut self, id: usize) -> Option<&mut LinefillObject>
fn delete_linefill(&mut self, id: usize) -> bool
fn add_polyline(&mut self, polyline: PolylineObject) -> usize
fn delete_polyline(&mut self, id: usize) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".