pub enum ColorSupport {
NoColor,
Basic,
Ansi256,
TrueColor,
}Expand description
Primitive terminal color capability.
Variants§
NoColor
Color output should not be used.
Basic
Basic ANSI color support is likely available.
Ansi256
256-color ANSI support is likely available.
TrueColor
24-bit truecolor support is likely available.
Implementations§
Source§impl ColorSupport
impl ColorSupport
Sourcepub fn from_env_values(
no_color: Option<&str>,
term: Option<&str>,
colorterm: Option<&str>,
) -> ColorSupport
pub fn from_env_values( no_color: Option<&str>, term: Option<&str>, colorterm: Option<&str>, ) -> ColorSupport
Infers color support from environment variable values.
Trait Implementations§
Source§impl Clone for ColorSupport
impl Clone for ColorSupport
Source§fn clone(&self) -> ColorSupport
fn clone(&self) -> ColorSupport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ColorSupport
impl Debug for ColorSupport
Source§impl Hash for ColorSupport
impl Hash for ColorSupport
Source§impl PartialEq for ColorSupport
impl PartialEq for ColorSupport
Source§fn eq(&self, other: &ColorSupport) -> bool
fn eq(&self, other: &ColorSupport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ColorSupport
impl Eq for ColorSupport
impl StructuralPartialEq for ColorSupport
Auto Trait Implementations§
impl Freeze for ColorSupport
impl RefUnwindSafe for ColorSupport
impl Send for ColorSupport
impl Sync for ColorSupport
impl Unpin for ColorSupport
impl UnsafeUnpin for ColorSupport
impl UnwindSafe for ColorSupport
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