pub struct MergeCells {
pub count: Option<u32>,
pub merge_cells: Vec<MergeCell>,
pub cached_coords: Vec<(u32, u32, u32, u32)>,
}Expand description
Merge cells container.
PartialEq is implemented manually to exclude cached_coords, which is a
transient performance cache. Two values with the same count and
merge_cells are semantically equal regardless of cache state.
Fields§
§count: Option<u32>§merge_cells: Vec<MergeCell>§cached_coords: Vec<(u32, u32, u32, u32)>Cached parsed coordinates (min_col, min_row, max_col, max_row) for each
merge region, kept in parallel with merge_cells. Populated lazily on
first overlap check and maintained during add/remove. Not serialized.
Trait Implementations§
Source§impl Clone for MergeCells
impl Clone for MergeCells
Source§fn clone(&self) -> MergeCells
fn clone(&self) -> MergeCells
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 moreSource§impl Debug for MergeCells
impl Debug for MergeCells
Source§impl<'de> Deserialize<'de> for MergeCells
impl<'de> Deserialize<'de> for MergeCells
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MergeCells
impl PartialEq for MergeCells
Auto Trait Implementations§
impl Freeze for MergeCells
impl RefUnwindSafe for MergeCells
impl Send for MergeCells
impl Sync for MergeCells
impl Unpin for MergeCells
impl UnwindSafe for MergeCells
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