Trait rat_ftable::TableData

source ·
pub trait TableData<'a> {
    // Required methods
    fn size(&self) -> (usize, usize);
    fn render_cell(
        &self,
        column: usize,
        row: usize,
        area: Rect,
        buf: &mut Buffer
    );

    // Provided methods
    fn row_height(&self, row: usize) -> u16 { ... }
    fn row_style(&self, row: usize) -> Style { ... }
}
Expand description

Trait for accessing the table-data by the FTable.

Required Methods§

source

fn size(&self) -> (usize, usize)

Size of the data.

source

fn render_cell(&self, column: usize, row: usize, area: Rect, buf: &mut Buffer)

Render the cell given by column/row.

Provided Methods§

source

fn row_height(&self, row: usize) -> u16

Row height.

source

fn row_style(&self, row: usize) -> Style

Row style.

Implementors§