pub struct CellChangeRow<'a> {
pub anchor: ChangeAnchor,
pub sheet_name: &'a str,
pub address: &'a CellAddress,
pub change_kind: CellChangeKind,
pub old_display: String,
pub new_display: String,
pub formula_changed: bool,
pub old_formula: Option<&'a str>,
pub new_formula: Option<&'a str>,
pub max_severity: Option<Severity>,
}Expand description
A single row in the flat change list presented to a GUI table.
Fields§
§anchor: ChangeAnchorStable anchor for navigation and virtualized table positioning.
sheet_name: &'a str§address: &'a CellAddress§change_kind: CellChangeKindCombined change kind derived from sub-fields.
old_display: StringDisplay string for the old value (empty if Added).
new_display: StringDisplay string for the new value (empty if Removed).
formula_changed: boolWhether a formula also changed on this cell.
old_formula: Option<&'a str>Old formula text, if a formula change is present (Q2: borrowed from the
underlying CellDiff, so GUI consumers need not reach into the raw model).
new_formula: Option<&'a str>New formula text, if a formula change is present.
max_severity: Option<Severity>Highest diagnostic severity attached to this cell.
Implementations§
Source§impl<'a> CellChangeRow<'a>
impl<'a> CellChangeRow<'a>
Sourcepub fn to_owned_row(&self) -> OwnedCellChangeRow
pub fn to_owned_row(&self) -> OwnedCellChangeRow
Convert this borrowed row into a fully owned OwnedCellChangeRow
(Q3: convenience for consumers whose model outlives the WorkbookDiff).
Auto Trait Implementations§
impl<'a> Freeze for CellChangeRow<'a>
impl<'a> RefUnwindSafe for CellChangeRow<'a>
impl<'a> Send for CellChangeRow<'a>
impl<'a> Sync for CellChangeRow<'a>
impl<'a> Unpin for CellChangeRow<'a>
impl<'a> UnsafeUnpin for CellChangeRow<'a>
impl<'a> UnwindSafe for CellChangeRow<'a>
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