pub enum ColorLevel {
Truecolor,
Ansi256,
Ansi16,
None,
}Expand description
The color-depth ladder — the wall as a sum type. Every emit is a total function over this; a new rung forces every block’s matrix row.
Variants§
Truecolor
24-bit 38;2;r;g;b — a real Nord panel.
Ansi256
256-color 38;5;n — quantized through the xterm cube + grey ramp.
Ansi16
16-color 30..37/90..97 — the terminal’s own palette renders it.
None
No SGR at all — a pipe, NO_COLOR, a dumb terminal. Zero escape bytes.
Implementations§
Source§impl ColorLevel
impl ColorLevel
Sourcepub const ALL: [ColorLevel; 4]
pub const ALL: [ColorLevel; 4]
Every rung, for the verification matrix (CLOSED-LOOP MASS-SYNTHESIS).
Sourcepub const fn is_colored(self) -> bool
pub const fn is_colored(self) -> bool
true when this rung emits at least some SGR.
Trait Implementations§
Source§impl Clone for ColorLevel
impl Clone for ColorLevel
Source§fn clone(&self) -> ColorLevel
fn clone(&self) -> ColorLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColorLevel
Source§impl Debug for ColorLevel
impl Debug for ColorLevel
impl Eq for ColorLevel
Source§impl Hash for ColorLevel
impl Hash for ColorLevel
Source§impl PartialEq for ColorLevel
impl PartialEq for ColorLevel
impl StructuralPartialEq for ColorLevel
Auto Trait Implementations§
impl Freeze for ColorLevel
impl RefUnwindSafe for ColorLevel
impl Send for ColorLevel
impl Sync for ColorLevel
impl Unpin for ColorLevel
impl UnsafeUnpin for ColorLevel
impl UnwindSafe for ColorLevel
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.