Skip to main content

Page

Trait Page 

Source
pub trait Page {
    // Required method
    fn render(&mut self, f: &mut Frame<'_>, area: Rect);
}
Expand description

A trait for UI pages that enforces a standard rendering interface. A trait for UI pages that enforces a standard rendering interface.

Required Methods§

Source

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

Renders a page in the provided frame and area.

Implementors§