pub enum ColorMode {
Auto,
Always,
Never,
}
Expand description
When to apply ANSI colors to output.
Variants§
Auto
Apply colors if the output (stdout or stderr) is a terminal. This is the default.
Additionally, if the NO_COLOR
environment variable is set to any non-empty string, ANSI
coloring will be disabled.
Always
Always apply ANSI colors.
Never
Never apply ANSI colors.
Trait Implementations§
impl Copy for ColorMode
Auto Trait Implementations§
impl Freeze for ColorMode
impl RefUnwindSafe for ColorMode
impl Send for ColorMode
impl Sync for ColorMode
impl Unpin for ColorMode
impl UnwindSafe for ColorMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more