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
sourceimpl Deref for SHOULD_COLORIZE
 
impl Deref for SHOULD_COLORIZE
type Target = ShouldColorize
type Target = ShouldColorize
The resulting type after dereferencing.
sourcefn deref(&self) -> &ShouldColorize
 
fn deref(&self) -> &ShouldColorize
Dereferences the value.
impl LazyStatic for SHOULD_COLORIZE
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more