pub enum ColorMode {
TrueColor,
Ansi256,
Ansi16,
}Variants§
Implementations§
Source§impl ColorMode
impl ColorMode
Sourcepub fn from_name(input: &str) -> Option<Self>
pub fn from_name(input: &str) -> Option<Self>
Parses a color mode from user input.
Accepts "truecolor", "24bit", "24-bit", "ansi256", "256",
"ansi16", and "16".
Examples found in repository?
More examples
Sourcepub const fn supported_names() -> &'static [&'static str]
pub const fn supported_names() -> &'static [&'static str]
Returns all canonical color mode names.
Examples found in repository?
More examples
Trait Implementations§
impl Copy for ColorMode
impl Eq for ColorMode
impl StructuralPartialEq for ColorMode
Auto Trait Implementations§
impl Freeze for ColorMode
impl RefUnwindSafe for ColorMode
impl Send for ColorMode
impl Sync for ColorMode
impl Unpin for ColorMode
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.