1use crate::Result; 2use crate::img::Image; 3use crate::img::pixel::Pixel; 4 5/// Trait for anything that can be overlayed on top of an image. 6pub trait Drawable<P: Pixel> { 7 fn draw_on(&self, image: &mut Image<P>) -> Result<()>; 8}