#[repr(u8)]pub enum DegradationLevel {
Full = 0,
SimpleBorders = 1,
NoStyling = 2,
EssentialOnly = 3,
Skeleton = 4,
SkipFrame = 5,
}Expand description
Progressive degradation levels for render quality.
Higher levels mean less visual fidelity but faster rendering.
The ordering is significant: Full < SimpleBorders < … < SkipFrame.
Variants§
Full = 0
All visual features enabled.
SimpleBorders = 1
Unicode box-drawing replaced with ASCII (+–+).
NoStyling = 2
Colors disabled, monochrome output.
EssentialOnly = 3
Skip decorative widgets, essential content only.
Skeleton = 4
Just layout boxes, no content.
SkipFrame = 5
Emergency: skip frame entirely.
Implementations§
Source§impl DegradationLevel
impl DegradationLevel
Sourcepub fn next(self) -> Self
pub fn next(self) -> Self
Move to the next degradation level.
Returns SkipFrame if already at maximum degradation.
Sourcepub fn prev(self) -> Self
pub fn prev(self) -> Self
Move to the previous (better quality) degradation level.
Returns Full if already at minimum degradation.
Sourcepub fn use_unicode_borders(self) -> bool
pub fn use_unicode_borders(self) -> bool
Whether to use Unicode box-drawing characters.
Returns false at SimpleBorders and above (use ASCII instead).
Sourcepub fn apply_styling(self) -> bool
pub fn apply_styling(self) -> bool
Whether to apply colors and style attributes to cells.
Returns false at NoStyling and above.
Sourcepub fn render_decorative(self) -> bool
pub fn render_decorative(self) -> bool
Whether to render decorative (non-essential) elements.
Returns false at EssentialOnly and above.
Decorative elements include borders, scrollbars, spinners, rules.
Sourcepub fn render_content(self) -> bool
pub fn render_content(self) -> bool
Whether to render content text.
Returns false at Skeleton and above.
Trait Implementations§
Source§impl Clone for DegradationLevel
impl Clone for DegradationLevel
Source§fn clone(&self) -> DegradationLevel
fn clone(&self) -> DegradationLevel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more