StylableChart

Trait StylableChart 

Source
pub trait StylableChart<C: PixelColor> {
    type Style;

    // Required methods
    fn apply_style(&mut self, style: Self::Style);
    fn style(&self) -> &Self::Style;
}
Expand description

Trait for customizable chart styling

Required Associated Types§

Source

type Style

Style configuration type

Required Methods§

Source

fn apply_style(&mut self, style: Self::Style)

Apply a style to the chart

§Arguments
  • style - The style configuration to apply
Source

fn style(&self) -> &Self::Style

Get the current style

Implementors§