Struct colored::control::SHOULD_COLORIZE [−][src]
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
[src]
type Target = ShouldColorize
The resulting type after dereferencing.
fn deref(&self) -> &ShouldColorize
[src]
impl LazyStatic for SHOULD_COLORIZE
[src]
fn initialize(lazy: &Self)
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,