plotters::style

Trait Palette

Source
pub trait Palette {
    const COLORS: &'static [(u8, u8, u8)];

    // Provided method
    fn pick(idx: usize) -> PaletteColor<Self>
       where Self: Sized { ... }
}
Expand description

Definitions of palettes of accessibility

Required Associated Constants§

Source

const COLORS: &'static [(u8, u8, u8)]

Provided Methods§

Source

fn pick(idx: usize) -> PaletteColor<Self>
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Palette for Palette99

Source§

const COLORS: &'static [(u8, u8, u8)] = _

Source§

impl Palette for Palette100

Source§

const COLORS: &'static [(u8, u8, u8)] = _

Source§

impl Palette for Palette9999

Source§

const COLORS: &'static [(u8, u8, u8)] = _