pub struct TableLayout<'t> {
pub columns: usize,
pub rows: usize,
pub header_rows: usize,
pub aligns: Vec<ColumnAlign>,
pub cells: Vec<PlacedCell<'t>>,
}Expand description
The table the model means: a complete grid. Every position is covered exactly once, every row has a cell of its own, no span crosses the table’s edge or the header boundary. Cells are in reading order (by row, then column).
Fields§
§columns: usizeWidth of the grid.
rows: usizeHeight of the grid (the stored rows).
header_rows: usizeThe leading rows that are headers, at most rows.
aligns: Vec<ColumnAlign>The alignment of each column, columns of them.
cells: Vec<PlacedCell<'t>>Trait Implementations§
Source§impl<'t> Clone for TableLayout<'t>
impl<'t> Clone for TableLayout<'t>
Source§impl<'t> Debug for TableLayout<'t>
impl<'t> Debug for TableLayout<'t>
Source§impl<'t> PartialEq for TableLayout<'t>
impl<'t> PartialEq for TableLayout<'t>
impl<'t> StructuralPartialEq for TableLayout<'t>
Auto Trait Implementations§
impl<'t> Freeze for TableLayout<'t>
impl<'t> RefUnwindSafe for TableLayout<'t>
impl<'t> Send for TableLayout<'t>
impl<'t> Sync for TableLayout<'t>
impl<'t> Unpin for TableLayout<'t>
impl<'t> UnsafeUnpin for TableLayout<'t>
impl<'t> UnwindSafe for TableLayout<'t>
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