pub enum ColorSystem {
Standard = 1,
EightBit = 2,
TrueColor = 3,
}Expand description
The color system supported by the terminal.
Variants§
Standard = 1
3-bit / 4-bit ANSI standard (8/16 colors)
EightBit = 2
8-bit (256 colors)
TrueColor = 3
24-bit true color
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 moreSource§impl Debug for ColorSystem
impl Debug for ColorSystem
Source§impl Display for ColorSystem
impl Display 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
Source§impl PartialEq for ColorSystem
impl PartialEq for ColorSystem
Source§fn eq(&self, other: &ColorSystem) -> bool
fn eq(&self, other: &ColorSystem) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ColorSystem
impl PartialOrd for ColorSystem
impl Copy for ColorSystem
impl Eq 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.