[][src]Trait unsegen::widget::builtin::table::TableRow

pub trait TableRow: 'static {
    const COLUMNS: &'static [Column<Self>];
    fn num_columns() -> usize { ... }
fn height_demand(&self) -> RowDemand { ... } }

This trait both (statically) describes the layout of the table (COLUMNS) and represents a single row in the table.

Implement this trait, if you want to create a Table!

Associated Constants

const COLUMNS: &'static [Column<Self>]

Define the behavior of individual columns of the table.

Loading content...

Provided methods

fn num_columns() -> usize

Convenient access using COLUMNS. (Do not reimplement this.)

fn height_demand(&self) -> RowDemand

Calculate the vertical space demand of the current row. (Default: max of all cells.)

Loading content...

Implementors

Loading content...