Enum termwiz::caps::ColorLevel
source · [−]pub enum ColorLevel {
Sixteen,
TwoFiftySix,
TrueColor,
}
Expand description
Describes the level of color support available
Variants
Sixteen
Basic ANSI colors; 8 colors + bright versions
TwoFiftySix
In addition to the ANSI 16 colors, this has 24 levels of grey and 216 colors typically 6x6x6 color cube with 5 bits. There is some variance in implementations: the precise color cube is different in different emulators.
TrueColor
Commonly accepted as 24-bit RGB color. The implementation may display these exactly as specified or it may match to an internal palette with fewer than the theoretical maximum 16 million colors. What we care about here is whether the terminal supports the escape sequence to specify RGB values rather than a palette index.
Trait Implementations
sourceimpl Clone for ColorLevel
impl Clone for ColorLevel
sourcefn clone(&self) -> ColorLevel
fn clone(&self) -> ColorLevel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ColorLevel
impl Debug for ColorLevel
sourceimpl PartialEq<ColorLevel> for ColorLevel
impl PartialEq<ColorLevel> for ColorLevel
impl Copy for ColorLevel
impl Eq for ColorLevel
impl StructuralEq for ColorLevel
impl StructuralPartialEq for ColorLevel
Auto Trait Implementations
impl RefUnwindSafe for ColorLevel
impl Send for ColorLevel
impl Sync for ColorLevel
impl Unpin for ColorLevel
impl UnwindSafe for ColorLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more