Enum ColorChoice
pub enum ColorChoice
Selection for overriding color output
Variants
-
Auto Use colors if the output device appears to support them
-
AlwaysAnsi Like
Always, except it never tries to use anything other than emitting ANSI color codes.-
Always Try very hard to emit colors.
This includes emitting ANSI colors on Windows if the console API is unavailable.
-
Never Never emit colors.
Implementations
impl ColorChoice
fn global() -> SelfGet the current
ColorChoicestatefn write_global(self)Override the detected
ColorChoice
Trait Implementations
impl Clone for ColorChoice
fn clone(&self) -> ColorChoice
impl Copy for ColorChoice
impl Debug for ColorChoice
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for ColorChoice
fn default() -> ColorChoice
impl Eq for ColorChoice
impl PartialEq for ColorChoice
fn eq(&self, other: &ColorChoice) -> bool
impl StructuralPartialEq for ColorChoice
Auto Trait Implementations
impl Freeze for ColorChoice
impl RefUnwindSafe for ColorChoice
impl Send for ColorChoice
impl Sync for ColorChoice
impl Unpin for ColorChoice
impl UnsafeUnpin for ColorChoice
impl UnwindSafe for ColorChoice
Blanket Implementations
impl<T> Any for ColorChoice
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ColorChoice
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ColorChoice
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ColorChoice
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ColorChoice
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for ColorChoice
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ColorChoice
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ColorChoice
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>