pub trait StyledDrawable<S> {
    type Color: PixelColor;
    type Output;

    // Required method
    fn draw_styled<D>(
        &self,
        style: &S,
        target: &mut D
    ) -> Result<Self::Output, D::Error>
       where D: DrawTarget<Color = Self::Color>;
}
Expand description

Styled drawable.

Required Associated Types§

source

type Color: PixelColor

Color type.

source

type Output

Output type.

Required Methods§

source

fn draw_styled<D>( &self, style: &S, target: &mut D ) -> Result<Self::Output, D::Error>where D: DrawTarget<Color = Self::Color>,

Draws the primitive using the given style.

Implementors§