pub struct PixelDiffResult {
pub diff_count: u64,
pub total_pixels: u64,
pub max_delta: u8,
pub dimensions_match: bool,
pub ref_width: u32,
pub ref_height: u32,
pub test_width: u32,
pub test_height: u32,
}Expand description
Result of comparing two pixmaps pixel-by-pixel.
Fields§
§diff_count: u64Number of pixels that differ beyond the threshold.
total_pixels: u64Total number of pixels compared.
max_delta: u8Maximum per-channel delta found across all pixels.
dimensions_match: boolWhether dimensions matched.
ref_width: u32Width of the reference image.
ref_height: u32Height of the reference image.
test_width: u32Width of the test image.
test_height: u32Height of the test image.
Implementations§
Trait Implementations§
Source§impl Clone for PixelDiffResult
impl Clone for PixelDiffResult
Source§fn clone(&self) -> PixelDiffResult
fn clone(&self) -> PixelDiffResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PixelDiffResult
impl RefUnwindSafe for PixelDiffResult
impl Send for PixelDiffResult
impl Sync for PixelDiffResult
impl Unpin for PixelDiffResult
impl UnsafeUnpin for PixelDiffResult
impl UnwindSafe for PixelDiffResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more