pub enum ColorMode {
Auto,
Always,
Never,
}Available on crate feature
colors only.Expand description
When to emit ANSI color escapes on stdout output.
Variants§
Auto
Emit colors only when the output is a TTY and the NO_COLOR
environment variable is not set.
Always
Always emit colors, regardless of TTY status or NO_COLOR.
Never
Never emit colors.
Trait Implementations§
impl Copy for ColorMode
impl Eq for ColorMode
impl StructuralPartialEq 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 UnsafeUnpin 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