pub struct SnapshotDiff {
pub matches: bool,
pub differences: Vec<DiffEntry>,
pub total_cells: usize,
pub matching_cells: usize,
}Expand description
Difference between two snapshots.
Fields§
§matches: boolWhether snapshots match.
differences: Vec<DiffEntry>List of differences.
total_cells: usizeTotal cells compared.
matching_cells: usizeCells that matched.
Implementations§
Source§impl SnapshotDiff
impl SnapshotDiff
Sourcepub fn match_percentage(&self) -> f64
pub fn match_percentage(&self) -> f64
Get match percentage.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SnapshotDiff
impl RefUnwindSafe for SnapshotDiff
impl Send for SnapshotDiff
impl Sync for SnapshotDiff
impl Unpin for SnapshotDiff
impl UnwindSafe for SnapshotDiff
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