pub struct TableLayoutParams {
pub table_id: usize,
pub rows: usize,
pub columns: usize,
pub column_widths: Vec<f32>,
pub border_width: f32,
pub cell_spacing: f32,
pub cell_padding: f32,
pub cells: Vec<CellLayoutParams>,
}Expand description
Parameters for a table, extracted from text-document’s TableSnapshot.
Fields§
§table_id: usize§rows: usize§columns: usize§column_widths: Vec<f32>Relative column widths (0.0-1.0). If empty, columns are distributed evenly.
border_width: f32§cell_spacing: f32§cell_padding: f32§cells: Vec<CellLayoutParams>One entry per cell, in row-major order (row 0 col 0, row 0 col 1, …).
Auto Trait Implementations§
impl Freeze for TableLayoutParams
impl RefUnwindSafe for TableLayoutParams
impl Send for TableLayoutParams
impl Sync for TableLayoutParams
impl Unpin for TableLayoutParams
impl UnsafeUnpin for TableLayoutParams
impl UnwindSafe for TableLayoutParams
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