A flag to to if coloring should occur.
Reads environment variables and checks if output is a tty to determine
whether colorization should be used or not.
CLICOLOR_FORCE takes highest priority, followed by
CLICOLOR combined with tty check.
pub fn should_colorize(&self) -> bool[src]
Returns if the current coloring is expected.
pub fn set_override(&self, override_colorize: bool)[src]
Use this to force colored to ignore the environment and always/never colorize
pub fn unset_override(&self)[src]
Remove the manual override and let the environment decide if it's ok to colorize
impl RefUnwindSafe for ShouldColorize
impl Send for ShouldColorize
impl Sync for ShouldColorize
impl Unpin for ShouldColorize
impl UnwindSafe for ShouldColorize
type Error = Infallible
The type returned in the event of a conversion error.