pub trait TUIDisplay {
    // Required method
    fn draw(&self, s: &mut Cursive);
}
Expand description

TUIDisplay is a trait for drawing screens within the TUI. The TUIDisplay::draw function takes a mutable reference to a [cursive::Cursive] instance as input and draws the screen.

Required Methods§

source

fn draw(&self, s: &mut Cursive)

Function to draw a screen within the TUI using the given [cursive::Cursive] instance.

Implementors§

source§

impl TUIDisplay for AppState

TUIDisplay implementation for AppState Repsonsible for drawing each screen.