Struct colored::control::SHOULD_COLORIZE
source · pub struct SHOULD_COLORIZE { /* private fields */ }
Expand description
The persistent ShouldColorize
.
Methods from Deref<Target = ShouldColorize>§
sourcepub fn should_colorize(&self) -> bool
pub fn should_colorize(&self) -> bool
Returns if the current coloring is expected.
sourcepub fn set_override(&self, override_colorize: bool)
pub fn set_override(&self, override_colorize: bool)
Use this to force colored to ignore the environment and always/never colorize
sourcepub fn unset_override(&self)
pub fn unset_override(&self)
Remove the manual override and let the environment decide if it’s ok to colorize
Trait Implementations§
source§impl Deref for SHOULD_COLORIZE
impl Deref for SHOULD_COLORIZE
§type Target = ShouldColorize
type Target = ShouldColorize
The resulting type after dereferencing.
source§fn deref(&self) -> &ShouldColorize
fn deref(&self) -> &ShouldColorize
Dereferences the value.