painted 1.0.0

Colored reborn (altough I won't maintain it much as I only need to publish a new version of colored)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

use color::Color;
use style::Style;

pub trait ColoringFormatter {
    fn format(out: String, fg: Color, bg: Color, style: Style) -> String;
}

pub struct NoColor;

impl ColoringFormatter for NoColor {
    fn format(out: String, _fg: Color, _bg: Color, _style: Style) -> String {
        out
    }
}