pub enum ColorSystem {
Standard,
EightBit,
Truecolor,
Windows,
}Expand description
The kind of terminal a color system supports.
Mirrors rich.color.ColorSystem. Ordering matters: a color of a given
ColorType can always be represented in an equal-or-higher system, so we
only ever downgrade, never upgrade.
Variants§
Standard
3/4-bit, the 16 standard ANSI colors.
EightBit
8-bit, the 256-color palette.
Truecolor
24-bit truecolor.
Windows
Legacy Windows console (16 colors, distinct SGR handling).
Trait Implementations§
Source§impl Clone for ColorSystem
impl Clone for ColorSystem
Source§fn clone(&self) -> ColorSystem
fn clone(&self) -> ColorSystem
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 ColorSystem
Source§impl Debug for ColorSystem
impl Debug for ColorSystem
impl Eq for ColorSystem
Source§impl Hash for ColorSystem
impl Hash for ColorSystem
Source§impl Ord for ColorSystem
impl Ord for ColorSystem
Source§fn cmp(&self, other: &ColorSystem) -> Ordering
fn cmp(&self, other: &ColorSystem) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ColorSystem
impl PartialEq for ColorSystem
Source§impl PartialOrd for ColorSystem
impl PartialOrd for ColorSystem
impl StructuralPartialEq for ColorSystem
Auto Trait Implementations§
impl Freeze for ColorSystem
impl RefUnwindSafe for ColorSystem
impl Send for ColorSystem
impl Sync for ColorSystem
impl Unpin for ColorSystem
impl UnsafeUnpin for ColorSystem
impl UnwindSafe for ColorSystem
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§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.