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

Mapping between chars and colors.

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

Required methods

Converts a char into a color of type C.

Converts a color of type C into a char.

Implementors