Trait Drawable
pub trait Drawable<DB, CM = BackendCoordOnly>where
DB: DrawingBackend,
CM: CoordMapper,{
// Required method
fn draw<I>(
&self,
pos: I,
backend: &mut DB,
parent_dim: (u32, u32),
) -> Result<(), DrawingErrorKind<<DB as DrawingBackend>::ErrorType>>
where I: Iterator<Item = <CM as CoordMapper>::Output>;
}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.