[][src]Trait embedded_graphics::mock_display::ColorMapping

pub trait ColorMapping<C> {
    fn char_to_color(c: char) -> C;
fn color_to_char(color: C) -> char; }

Mapping between chars and colors.

See the module-level documentation for a table of implemented mappings.

Required methods

fn char_to_color(c: char) -> C

Converts a char into a color of type C.

fn color_to_char(color: C) -> char

Converts a color of type C into a char.

Loading content...

Implementors

impl ColorMapping<BinaryColor> for BinaryColor[src]

impl ColorMapping<Gray8> for Gray8[src]

impl ColorMapping<Rgb888> for Rgb888[src]

Loading content...