colored_string

Function colored_string 

Source
pub fn colored_string<T: Display>(
    content: T,
    color: Option<Color>,
    style: Option<Style>,
) -> String
Expand description

Helper function to conditionally create a string with ANSI coloring for terminal output