Detects whether a terminal supports color, and gives details about that
support. It takes into account the COLOR
and NO_COLOR
environment
variables.
This crate is a Rust port of @sindresorhus' NPM package by the same name.
Example
use Stream;
let support = on;
if support.has_16m else if support.has_256 else if support.has_basic else