supports_color

Function on

Source
pub fn on(stream: Stream) -> Option<ColorLevel>
Expand description

Returns a ColorLevel if a Stream supports terminal colors.