pub enum ColorWhen {
Off,
Auto,
Always,
}Expand description
Caller-facing text color policy.
Variants§
Off
Never emit ANSI color.
Auto
Emit ANSI color only when the output sink supports it.
Always
Always emit ANSI color.
Implementations§
Trait Implementations§
impl Copy for ColorWhen
impl Eq for ColorWhen
impl StructuralPartialEq for ColorWhen
Auto Trait Implementations§
impl Freeze for ColorWhen
impl RefUnwindSafe for ColorWhen
impl Send for ColorWhen
impl Sync for ColorWhen
impl Unpin for ColorWhen
impl UnsafeUnpin for ColorWhen
impl UnwindSafe for ColorWhen
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