pub struct VisualDiff {
pub match_percentage: f64,
pub diff_pixel_count: usize,
pub total_pixels: usize,
pub masked_pixels: usize,
pub diff_image_path: Option<PathBuf>,
}Expand description
Result of comparing two screenshots pixel-by-pixel.
Fields§
§match_percentage: f64Percentage of pixels that matched (0.0 to 100.0).
diff_pixel_count: usizeTotal number of pixels that differed beyond tolerance.
total_pixels: usizeTotal pixels compared (excludes masked regions).
masked_pixels: usizeNumber of pixels skipped by mask regions.
diff_image_path: Option<PathBuf>Path to the diff image, if one was generated.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VisualDiff
impl RefUnwindSafe for VisualDiff
impl Send for VisualDiff
impl Sync for VisualDiff
impl Unpin for VisualDiff
impl UnsafeUnpin for VisualDiff
impl UnwindSafe for VisualDiff
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