pub struct TableBlock {
pub col_widths: Vec<f64>,
pub rows: Vec<TableRow>,
pub header_row_indices: Vec<usize>,
pub table_width: f64,
pub table_indent: f64,
pub borders: Option<CT_TblBorders>,
}Expand description
A laid-out table.
Fields§
§col_widths: Vec<f64>Column widths in points.
rows: Vec<TableRow>Laid-out rows.
header_row_indices: Vec<usize>Indices of rows that are header rows (repeat on page break).
table_width: f64Total table width in points.
table_indent: f64Table indent from left margin in points.
borders: Option<CT_TblBorders>Table-level borders (used as fallback for cell borders).
Implementations§
Source§impl TableBlock
impl TableBlock
Sourcepub fn content_height(&self) -> f64
pub fn content_height(&self) -> f64
Total content height of all rows.
Sourcepub fn total_height(&self) -> f64
pub fn total_height(&self) -> f64
Total height (same as content for tables, no before/after spacing).
Trait Implementations§
Source§impl Clone for TableBlock
impl Clone for TableBlock
Source§fn clone(&self) -> TableBlock
fn clone(&self) -> TableBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TableBlock
impl RefUnwindSafe for TableBlock
impl Send for TableBlock
impl Sync for TableBlock
impl Unpin for TableBlock
impl UnsafeUnpin for TableBlock
impl UnwindSafe for TableBlock
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