#[non_exhaustive]pub enum ColorDepth {
Ansi16,
Ansi256,
TrueColor,
}Expand description
How many colours the terminal can show.
The variants are ordered from fewest colours to most, so
ColorDepth::Ansi16 < ColorDepth::TrueColor.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for ColorDepth
impl Clone for ColorDepth
impl Copy for ColorDepth
Source§impl Debug for ColorDepth
impl Debug for ColorDepth
impl Eq for ColorDepth
Source§impl Hash for ColorDepth
impl Hash for ColorDepth
Source§impl Ord for ColorDepth
impl Ord for ColorDepth
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 ColorDepth
impl PartialEq for ColorDepth
Source§impl PartialOrd for ColorDepth
impl PartialOrd for ColorDepth
impl StructuralPartialEq for ColorDepth
Auto Trait Implementations§
impl Forget for ColorDepth
impl Freeze for ColorDepth
impl RefUnwindSafe for ColorDepth
impl Send for ColorDepth
impl Sync for ColorDepth
impl Unpin for ColorDepth
impl UnsafeUnpin for ColorDepth
impl UnwindSafe for ColorDepth
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