Trait embedded_graphics::primitives::StyledDrawable
source · 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§
sourcetype Color: PixelColor
type Color: PixelColor
Color type.
Required Methods§
sourcefn draw_styled<D>(
&self,
style: &S,
target: &mut D,
) -> Result<Self::Output, D::Error>where
D: DrawTarget<Color = Self::Color>,
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.
Object Safety§
This trait is not object safe.