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§
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".