pub struct GridCell {
pub anchor: GridCoord,
pub row_idx: usize,
pub cell_idx: usize,
pub row_span: u16,
pub col_span: u16,
}Expand description
An anchor cell placed on the logical grid.
Only merge anchors (the top-left cell of a merged region) exist as cells; positions covered by a span resolve back to their anchor.
Fields§
§anchor: GridCoordLogical position of the anchor (top-left of the merged region).
row_idx: usizeIndex into Table::rows where this cell lives.
cell_idx: usizeIndex into the row’s cells where this cell lives.
row_span: u16Number of logical rows this cell covers (≥ 1).
col_span: u16Number of logical columns this cell covers (≥ 1).
Trait Implementations§
impl Copy for GridCell
impl Eq for GridCell
impl StructuralPartialEq for GridCell
Auto Trait Implementations§
impl Freeze for GridCell
impl RefUnwindSafe for GridCell
impl Send for GridCell
impl Sync for GridCell
impl Unpin for GridCell
impl UnsafeUnpin for GridCell
impl UnwindSafe for GridCell
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.