pub enum ColorSupport {
NoColor = 0,
Basic = 1,
Color256 = 2,
TrueColor = 3,
}Expand description
Terminal color support levels
Variants§
Implementations§
Source§impl ColorSupport
impl ColorSupport
Sourcepub fn supports(&self, required: ColorSupport) -> bool
pub fn supports(&self, required: ColorSupport) -> bool
Check if this support level can handle the requested level
Trait Implementations§
Source§impl Clone for ColorSupport
impl Clone for ColorSupport
Source§fn clone(&self) -> ColorSupport
fn clone(&self) -> ColorSupport
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 ColorSupport
impl Debug for ColorSupport
Source§impl Display for ColorSupport
impl Display for ColorSupport
Source§impl Ord for ColorSupport
impl Ord for ColorSupport
Source§fn cmp(&self, other: &ColorSupport) -> Ordering
fn cmp(&self, other: &ColorSupport) -> Ordering
1.21.0 · 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
Source§impl PartialEq for ColorSupport
impl PartialEq for ColorSupport
Source§impl PartialOrd for ColorSupport
impl PartialOrd for ColorSupport
impl Copy for ColorSupport
impl Eq for ColorSupport
impl StructuralPartialEq for ColorSupport
Auto Trait Implementations§
impl Freeze for ColorSupport
impl RefUnwindSafe for ColorSupport
impl Send for ColorSupport
impl Sync for ColorSupport
impl Unpin for ColorSupport
impl UnwindSafe for ColorSupport
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