[]Struct colored::control::SHOULD_COLORIZE

pub struct SHOULD_COLORIZE { /* fields omitted */ }

The persistent ShouldColorize.

Methods from Deref<Target = ShouldColorize>

pub fn should_colorize(&self) -> bool[src]

Returns if the current coloring is expected.

pub fn set_override(&self, override_colorize: bool)[src]

Use this to force colored to ignore the environment and always/never colorize

pub fn unset_override(&self)[src]

Remove the manual override and let the environment decide if it's ok to colorize

Trait Implementations

impl Deref for SHOULD_COLORIZE

type Target = ShouldColorize

The resulting type after dereferencing.

impl LazyStatic for SHOULD_COLORIZE

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.