Trait Fill

Source
pub trait Fill {
    // Required method
    fn fill(&self, display: &mut Display, color: impl Into<Rgb<u8>>);
}
Expand description

A type implementing this trait can draw a filled shape to the display.

Required Methods§

Source

fn fill(&self, display: &mut Display, color: impl Into<Rgb<u8>>)

Draw a filled shape to the display.

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.

Implementors§

Source§

impl Fill for Circle

Source§

impl Fill for Line

Source§

impl Fill for Rect

Source§

impl<T: Into<Point2<i16>> + Copy> Fill for T