LegendBuilder

Trait LegendBuilder 

Source
pub trait LegendBuilder<C: PixelColor> {
    type Legend: Legend<C>;
    type Error;

    // Required method
    fn build(self) -> Result<Self::Legend, Self::Error>;
}
Expand description

Builder for creating legends with fluent configuration

Required Associated Types§

Source

type Legend: Legend<C>

The legend type this builder creates

Source

type Error

Error type for building operations

Required Methods§

Source

fn build(self) -> Result<Self::Legend, Self::Error>

Build the legend with current configuration

Implementors§