pub enum ColorDepth {
TrueColor,
EightBit,
Basic,
}Expand description
Terminal color depth capability.
Determines the maximum number of colors a terminal can display.
Use ColorDepth::detect for automatic detection via environment
variables, or specify explicitly in [RunConfig].
Variants§
TrueColor
24-bit true color (16 million colors).
EightBit
256-color palette (xterm-256color).
Basic
16 basic ANSI colors.
Implementations§
Source§impl ColorDepth
impl ColorDepth
Trait Implementations§
Source§impl Clone for ColorDepth
impl Clone for ColorDepth
Source§fn clone(&self) -> ColorDepth
fn clone(&self) -> ColorDepth
Returns a duplicate 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 ColorDepth
impl Debug for ColorDepth
Source§impl<'de> Deserialize<'de> for ColorDepth
impl<'de> Deserialize<'de> for ColorDepth
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ColorDepth
impl Hash for ColorDepth
Source§impl PartialEq for ColorDepth
impl PartialEq for ColorDepth
Source§impl Serialize for ColorDepth
impl Serialize for ColorDepth
impl Copy for ColorDepth
impl Eq for ColorDepth
impl StructuralPartialEq for ColorDepth
Auto Trait Implementations§
impl Freeze for ColorDepth
impl RefUnwindSafe for ColorDepth
impl Send for ColorDepth
impl Sync for ColorDepth
impl Unpin for ColorDepth
impl UnsafeUnpin for ColorDepth
impl UnwindSafe for ColorDepth
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