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
sourceimpl 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
impl Copy 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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more