Drawable

Trait Drawable 

Source
pub trait Drawable<P: Pixel> {
    // Required method
    fn draw_on(&self, image: &mut Image<P>) -> Result<()>;
}
Expand description

Trait for anything that can be overlayed on top of an image.

Required Methods§

Source

fn draw_on(&self, image: &mut Image<P>) -> Result<()>

Implementors§

Source§

impl<P> Drawable<P> for AABB<P>
where P: Pixel,

Source§

impl<P> Drawable<P> for Circle<P>
where P: Pixel,

Source§

impl<P> Drawable<P> for Line<P>
where P: Pixel,