Enum anstream::ColorChoice
source · pub enum ColorChoice {
Auto,
AlwaysAnsi,
Always,
Never,
}
Expand description
Selection for overriding color output Selection for overriding color output
Variants§
Implementations§
source§impl ColorChoice
impl ColorChoice
sourcepub fn global() -> ColorChoice
pub fn global() -> ColorChoice
Get the current ColorChoice
state
sourcepub fn write_global(self)
pub fn write_global(self)
Override the detected ColorChoice
Trait Implementations§
source§impl Clone for ColorChoice
impl Clone for ColorChoice
source§fn clone(&self) -> ColorChoice
fn clone(&self) -> ColorChoice
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 ColorChoice
impl Debug for ColorChoice
source§impl Default for ColorChoice
impl Default for ColorChoice
source§fn default() -> ColorChoice
fn default() -> ColorChoice
Returns the “default value” for a type. Read more
source§impl PartialEq<ColorChoice> for ColorChoice
impl PartialEq<ColorChoice> for ColorChoice
source§fn eq(&self, other: &ColorChoice) -> bool
fn eq(&self, other: &ColorChoice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.