pub enum ColorSystem {
Standard = 1,
EightBit = 2,
TrueColor = 3,
Windows = 4,
}Expand description
The color system supported by a terminal.
Variants§
Standard = 1
16 standard ANSI colors (colors 0-15).
EightBit = 2
256 colors (8-bit palette).
TrueColor = 3
24-bit RGB (truecolor).
Windows = 4
Windows legacy console colors.
Implementations§
Source§impl ColorSystem
impl ColorSystem
Sourcepub fn color_count(&self) -> usize
pub fn color_count(&self) -> usize
Get the number of colors in this system.
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 · 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 Hash for ColorSystem
impl Hash for ColorSystem
Source§impl PartialEq for ColorSystem
impl PartialEq 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 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> 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.