#[non_exhaustive]pub struct CellDiff {
pub address: CellAddress,
pub value: Option<ValueChange>,
pub formula: Option<FormulaChange>,
pub format: Option<FormatChange>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
A merged per-cell diff entry (RFC-033 §5).
One CellDiff per logical address. Value and formula changes are
independent sub-fields. change_kind() is derived, not stored.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.address: CellAddress§value: Option<ValueChange>§formula: Option<FormulaChange>§format: Option<FormatChange>Reserved until RFC-022.
diagnostics: Vec<Diagnostic>Implementations§
Source§impl CellDiff
impl CellDiff
Sourcepub fn change_kind(&self) -> CellChangeKind
pub fn change_kind(&self) -> CellChangeKind
Derive Added / Removed / Modified from the sub-change fields.
- Added: every present sub-change has
old == None. - Removed: every present sub-change has
new == None. - Modified: otherwise.
Trait Implementations§
impl StructuralPartialEq for CellDiff
Auto Trait Implementations§
impl Freeze for CellDiff
impl RefUnwindSafe for CellDiff
impl Send for CellDiff
impl Sync for CellDiff
impl Unpin for CellDiff
impl UnsafeUnpin for CellDiff
impl UnwindSafe for CellDiff
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