pub trait Drawable<DB: DrawingBackend, CM: CoordMapper = BackendCoordOnly> {
// Required method
fn draw<I: Iterator<Item = CM::Output>>(
&self,
pos: I,
backend: &mut DB,
parent_dim: (u32, u32),
) -> Result<(), DrawingErrorKind<DB::ErrorType>>;
}
Expand description
The trait indicates we are able to draw it on a drawing area
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.