pub enum ColorMode {
TwoTone,
ThreeBit,
FourBit,
EightBit,
TrueColor,
}
Expand description
Represents the color mode of a terminal interface.
Variants§
TwoTone
Supports 2 colors.
ThreeBit
Supports 8 colors.
FourBit
Supports 16 colors.
EightBit
Supports 256 colors.
TrueColor
Supports 24 bits of color.
Implementations§
source§impl ColorMode
impl ColorMode
sourcepub fn has_minimum_four_bit_color(self) -> bool
pub fn has_minimum_four_bit_color(self) -> bool
Supports 4 bit or more of color.
sourcepub fn has_true_color(self) -> bool
pub fn has_true_color(self) -> bool
Has true color support.
Trait Implementations§
source§impl PartialEq<ColorMode> for ColorMode
impl PartialEq<ColorMode> for ColorMode
impl Copy for ColorMode
impl Eq for ColorMode
impl StructuralEq for ColorMode
impl StructuralPartialEq for ColorMode
Auto Trait Implementations§
impl RefUnwindSafe for ColorMode
impl Send for ColorMode
impl Sync for ColorMode
impl Unpin for ColorMode
impl UnwindSafe for ColorMode
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