pub enum ColorLevel {
None,
Basic,
Ansi256,
TrueColor,
}Expand description
The level of color support detected for the terminal.
Variants§
None
No color support (monochrome terminals, NO_COLOR env)
Basic
Basic 16-color ANSI support (colors 0-15)
Ansi256
256-color support (colors 0-255)
TrueColor
24-bit truecolor RGB support (16 million colors)
Implementations§
Trait Implementations§
Source§impl Clone for ColorLevel
impl Clone for ColorLevel
Source§fn clone(&self) -> ColorLevel
fn clone(&self) -> ColorLevel
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 moreimpl Copy for ColorLevel
Source§impl Debug for ColorLevel
impl Debug for ColorLevel
Source§impl Default for ColorLevel
impl Default for ColorLevel
Source§fn default() -> ColorLevel
fn default() -> ColorLevel
Returns the “default value” for a type. Read more
impl Eq for ColorLevel
Source§impl Ord for ColorLevel
impl Ord for ColorLevel
Source§fn cmp(&self, other: &ColorLevel) -> Ordering
fn cmp(&self, other: &ColorLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ColorLevel
impl PartialEq for ColorLevel
Source§impl PartialOrd for ColorLevel
impl PartialOrd for ColorLevel
impl StructuralPartialEq for ColorLevel
Auto Trait Implementations§
impl Freeze for ColorLevel
impl RefUnwindSafe for ColorLevel
impl Send for ColorLevel
impl Sync for ColorLevel
impl Unpin for ColorLevel
impl UnsafeUnpin for ColorLevel
impl UnwindSafe for ColorLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more