Debian Codegraph @

src/formatters.rs

raw symbols SCIP
1
2 use color::Color;
3 use style::Style;
4
5 pub trait ColoringFormatter {
6 fn format(out: String, fg: Color, bg: Color, style: Style) -> String;
7 }
8
9 pub struct NoColor;
10
11 impl ColoringFormatter for NoColor {
12 fn format(out: String, _fg: Color, _bg: Color, _style: Style) -> String {
13 out
14 }
15 }