pub struct ShouldColorize { /* private fields */ }

Implementations

Reads environment variables to determine whether colorization should be used or not. CLICOLOR_FORCE takes highest priority, followed by NO_COLOR, followed by CLICOLOR. In the absence of manual overrides, which take precedence over all environment variables, the priority of these variables can be expressed as follows.

NO_COLORCLICOLORCLICOLOR_FORCEcolorize?
unsetunsetunsettrue (default)
unset!= 0unsettrue
unset== 0unsetfalse
setunset/== 0/!= 0unsetfalse
set/unsetunset/== 0/!= 0== 0false
set/unsetunset/== 0/!= 0!= 0true

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.