pub struct CellRange {
pub table_id: usize,
pub start_row: usize,
pub start_col: usize,
pub end_row: usize,
pub end_col: usize,
}Expand description
A rectangular range of cells within a single table (inclusive bounds).
Fields§
§table_id: usize§start_row: usize§start_col: usize§end_row: usize§end_col: usizeImplementations§
Source§impl CellRange
impl CellRange
Sourcepub fn expand_for_spans(self, cells: &[(usize, usize, usize, usize)]) -> Self
pub fn expand_for_spans(self, cells: &[(usize, usize, usize, usize)]) -> Self
Expand the range so that every merged cell whose span overlaps the
rectangle is fully included. cells is a slice of
(row, col, row_span, col_span) for every cell in the table.
Uses fixed-point iteration (converges in 1-2 rounds for typical tables).
Trait Implementations§
impl Eq for CellRange
impl StructuralPartialEq for CellRange
Auto Trait Implementations§
impl Freeze for CellRange
impl RefUnwindSafe for CellRange
impl Send for CellRange
impl Sync for CellRange
impl Unpin for CellRange
impl UnsafeUnpin for CellRange
impl UnwindSafe for CellRange
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