pub enum ColoringMode {
AlwaysColor,
NeverColor,
UseEnvironment,
}Expand description
Different behaviors for the crate to allow overriding the colored output
behaviors. Creating the environment variable NO_COLOR (value is not
relevant) will disable all coloring. There is also some detection going on
to decide what kind of terminal type is used and if coloring should be used
or not. See colored::control for more information.
Variants§
AlwaysColor
Output will always use color regardless of environment variable or terminal type.
NeverColor
Output will never use color regardless of environment variable or terminal type.
UseEnvironment
Set library to automatically detect if output should use color or not.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColoringMode
impl RefUnwindSafe for ColoringMode
impl Send for ColoringMode
impl Sync for ColoringMode
impl Unpin for ColoringMode
impl UnwindSafe for ColoringMode
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