pub struct Style { /* private fields */ }Expand description
Whether to colour, and what with.
The codes are clap’s, so that a terminal shows the same thing: bold red for error:, yellow
for the offending text, green for a suggestion and for what was expected, bold underline for
Usage:.
Implementations§
Source§impl Style
impl Style
Sourcepub fn auto() -> Style
pub fn auto() -> Style
Colour when stderr is a terminal and the environment has not asked otherwise.
NO_COLOR wins over everything, per the convention: a user who sets it has said once, for
every program, that they do not want this. CLICOLOR_FORCE is the other direction, for a
pipe that ends up somewhere that does render colour.
Trait Implementations§
impl Copy for Style
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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