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
source§type Target = ShouldColorize
type Target = ShouldColorize
The resulting type after dereferencing.
source§fn deref(&self) -> &ShouldColorize
fn deref(&self) -> &ShouldColorize
Dereferences the value.
impl LazyStatic for SHOULD_COLORIZE
Auto Trait Implementations§
impl Freeze for SHOULD_COLORIZE
impl RefUnwindSafe for SHOULD_COLORIZE
impl Send for SHOULD_COLORIZE
impl Sync for SHOULD_COLORIZE
impl Unpin for SHOULD_COLORIZE
impl UnwindSafe for SHOULD_COLORIZE
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more