pub struct TextTable { /* private fields */ }Expand description
A read-only handle to a table in the document.
Obtained from FlowElement::Table during flow traversal.
Implementations§
Source§impl TextTable
impl TextTable
Sourcepub fn cell(&self, row: usize, col: usize) -> Option<TextTableCell>
pub fn cell(&self, row: usize, col: usize) -> Option<TextTableCell>
Cell at grid position. O(c) where c = total cells.
Sourcepub fn column_widths(&self) -> Vec<i32>
pub fn column_widths(&self) -> Vec<i32>
Column widths. O(1).
Sourcepub fn format(&self) -> TableFormat
pub fn format(&self) -> TableFormat
Table-level formatting. O(1).
Sourcepub fn snapshot(&self) -> TableSnapshot
pub fn snapshot(&self) -> TableSnapshot
All cells with block snapshots. O(c·k).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextTable
impl !RefUnwindSafe for TextTable
impl Send for TextTable
impl Sync for TextTable
impl Unpin for TextTable
impl UnsafeUnpin for TextTable
impl !UnwindSafe for TextTable
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