pub struct TableLayout {
pub names_height: usize,
pub column_groups: Vec<ColumnGroup>,
pub columns: Vec<Column>,
pub col_index_width: usize,
pub col_widths: Vec<usize>,
pub row_heights: Vec<usize>,
pub total_rows: usize,
}Expand description
Computed layout for table rendering.
Fields§
§names_height: usizeHeight of the names section of the header (column names)
column_groups: Vec<ColumnGroup>Hierarchical column groups (for multi-row headers).
columns: Vec<Column>Flat list of leaf columns.
col_index_width: usizeWidth for the index column.
col_widths: Vec<usize>Width for each leaf column.
row_heights: Vec<usize>Visual height for each logical row (due to array expansion).
total_rows: usizeNumber of table rows
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more