pub struct Table {
pub columns: Vec<f64>,
pub default_style: CellStyle,
pub border_color: Color,
pub border_width: f64,
}Expand description
Table layout configuration. Holds column widths and visual style; does not
store row data. The caller supplies one Row at a time to fit_row,
enabling streaming from a database cursor without buffering the full dataset.
Fields§
§columns: Vec<f64>Column widths in points.
default_style: CellStyleReference style for constructing cells. Clone it when creating cells to apply consistent styling across the table.
border_color: ColorBorder stroke color (default: black).
border_width: f64Border line width in points. Set to 0.0 to disable borders.
Implementations§
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnsafeUnpin for Table
impl UnwindSafe for Table
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