[−][src]Enum termcolor::ColorChoice
ColorChoice represents the color preferences of an end user.
Variants
AlwaysTry very hard to emit colors. This includes emitting ANSI colors on Windows if the console API is unavailable.
AlwaysAnsiAlwaysAnsi is like Always, except it never tries to use anything other than emitting ANSI color codes.
AutoTry to use colors, but don't force the issue. If the console isn't available on Windows, or if TERM=dumb, for example, then don't use colors.
NeverNever emit colors.
Trait Implementations
impl PartialEq<ColorChoice> for ColorChoice[src]
impl PartialEq<ColorChoice> for ColorChoicefn eq(&self, other: &ColorChoice) -> bool[src]
fn eq(&self, other: &ColorChoice) -> bool#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Clone for ColorChoice[src]
impl Clone for ColorChoicefn clone(&self) -> ColorChoice[src]
fn clone(&self) -> ColorChoicefn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for ColorChoice[src]
impl Copy for ColorChoiceimpl Eq for ColorChoice[src]
impl Eq for ColorChoiceimpl Debug for ColorChoice[src]
impl Debug for ColorChoiceAuto Trait Implementations
impl Send for ColorChoice
impl Send for ColorChoiceimpl Sync for ColorChoice
impl Sync for ColorChoiceBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId