Module colorz::mode

source ·
Expand description

Flags to control if any styling should occur

There are three levels, in order of precedence

higher precedence options forces coloring or no-coloring even if lower precedence options specify otherwise.

For example, using StyledValue::stream to Stream::AlwaysColor doesn’t gurantee that any coloring will happen. For example, if the strip-colors feature flag is set or if set(Mode::Never) was called before.

However, these flags only control coloring on StyledValue, so using the color types directly to color values will always be supported (even with strip-colors).

Structs

Enums

Functions