pub enum ColourChoice {
Yes,
No,
Auto,
}
Expand description
Enum that can be used to choose whether colour should be enabled in the HumanLogger’s log messages.
Variants§
Yes
ANSI colours are always written, regardless of what we write to.
No
ANSI colours are never written, regardless of what we write to.
Auto
ANSI colours are written depending on whether we are writing to a TTY (in which case we will), or some other output (in which case we won’t).
Trait Implementations§
Source§impl Clone for ColourChoice
impl Clone for ColourChoice
Source§fn clone(&self) -> ColourChoice
fn clone(&self) -> ColourChoice
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ColourChoice
impl Debug for ColourChoice
Source§impl Hash for ColourChoice
impl Hash for ColourChoice
Source§impl PartialEq for ColourChoice
impl PartialEq for ColourChoice
impl Copy for ColourChoice
impl Eq for ColourChoice
impl StructuralPartialEq for ColourChoice
Auto Trait Implementations§
impl Freeze for ColourChoice
impl RefUnwindSafe for ColourChoice
impl Send for ColourChoice
impl Sync for ColourChoice
impl Unpin for ColourChoice
impl UnwindSafe for ColourChoice
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