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§
Sourcefn status_line(&self) -> String
fn status_line(&self) -> String
Get current status line.
Sourcefn current_step(&self) -> u64
fn current_step(&self) -> u64
Get current step count.
Sourcefn is_running(&self) -> bool
fn is_running(&self) -> bool
Check if demo is paused/complete.