Skip to main content

Screen

Trait Screen 

Source
pub trait Screen {
    // Required methods
    fn render(&self, f: &mut Frame<'_>);
    fn update(&mut self, message: Message) -> Option<Command>;
}

Required Methods§

Source

fn render(&self, f: &mut Frame<'_>)

Source

fn update(&mut self, message: Message) -> Option<Command>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§