pub enum ColorDepth {
Mono,
Ansi16,
Ansi256,
TrueColor,
}Expand description
How many colours the output can carry.
The frontier glow is a gradient, so it is the part of the design that suffers most on a limited terminal. Rather than emit 24-bit escapes everywhere and let the terminal do something arbitrary, the palette is mapped down explicitly.
Variants§
Mono
No colour at all. Chosen when NO_COLOR is set or TERM=dumb.
Ansi16
The 16 ANSI colours.
Ansi256
The 256-colour cube. The default when the terminal does not say otherwise.
TrueColor
24-bit colour, the full palette.
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 (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 ColorDepth
Source§impl Debug for ColorDepth
impl Debug for ColorDepth
Source§impl Default for ColorDepth
impl Default for ColorDepth
Source§fn default() -> ColorDepth
fn default() -> ColorDepth
Returns the “default value” for a type. Read more
impl Eq for ColorDepth
Source§impl PartialEq for ColorDepth
impl PartialEq 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