pub enum ColorDepth {
None,
Ansi16,
Ansi256,
TrueColor,
}Expand description
Colour depth, ordered from none to truecolor.
Variants§
Implementations§
Source§impl ColorDepth
impl ColorDepth
Sourcepub fn color_system(self) -> Option<ColorSystem>
pub fn color_system(self) -> Option<ColorSystem>
The core colour system, None for no colour.
Sourcepub fn from_color_system(system: Option<ColorSystem>) -> Self
pub fn from_color_system(system: Option<ColorSystem>) -> Self
The depth of a core colour system.
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
Source§impl Serialize for ColorDepth
impl Serialize for ColorDepth
impl StructuralPartialEq for ColorDepth
Auto Trait Implementations§
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
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.