Skip to main content

ChartStyle

Trait ChartStyle 

Source
pub trait ChartStyle: 'static {
    // Required methods
    fn bar_fill(&self, cfg: &ChartFillContext<'_>) -> FillRecipe;
    fn area_fill(&self, cfg: &ChartFillContext<'_>, opacity: f32) -> FillRecipe;
    fn donut_fill(&self, cfg: &ChartFillContext<'_>) -> FillRecipe;
    fn gridline(&self, theme: &Theme) -> BorderRecipe;
}

Required Methods§

Source

fn bar_fill(&self, cfg: &ChartFillContext<'_>) -> FillRecipe

Source

fn area_fill(&self, cfg: &ChartFillContext<'_>, opacity: f32) -> FillRecipe

Source

fn donut_fill(&self, cfg: &ChartFillContext<'_>) -> FillRecipe

Source

fn gridline(&self, theme: &Theme) -> BorderRecipe

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§