summaryrefslogtreecommitdiffstats
path: root/vendor/colored/src/formatters.rs
blob: 56d5db0d806e85cb383cd466b78c81094c5bd782 (plain)
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
    }
}