Skip to main content

RenderableDemo

Trait RenderableDemo 

Source
pub trait RenderableDemo {
    // Required methods
    fn title(&self) -> String;
    fn status_line(&self) -> String;
    fn metrics(&self) -> Vec<(String, String)>;
    fn current_step(&self) -> u64;
    fn is_running(&self) -> bool;
}
Expand description

Trait for renderable demo data.

Engines that want TUI rendering implement this to provide display-friendly data without coupling to ratatui.

Required Methods§

Source

fn title(&self) -> String

Get demo title for display.

Source

fn status_line(&self) -> String

Get current status line.

Source

fn metrics(&self) -> Vec<(String, String)>

Get key metrics as (label, value) pairs.

Source

fn current_step(&self) -> u64

Get current step count.

Source

fn is_running(&self) -> bool

Check if demo is paused/complete.

Implementors§