[go: up one dir, main page]

colored 1.9.1

The most simple way to add colors in your terminal
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
    }
}