pub struct PixelDifference {
pub x: u32,
pub y: u32,
pub lhs: [u8; 4],
pub rhs: [u8; 4],
pub difference: u32,
}Expand description
One pixel that differs between two RGBA images.
Fields§
§x: u32Column of the pixel, counted from the left.
y: u32Row of the pixel, counted from the top.
lhs: [u8; 4]RGBA bytes of the pixel in the left image.
rhs: [u8; 4]RGBA bytes of the pixel in the right image.
difference: u32Sum of the absolute per-channel differences, from 0 to 1020.
Trait Implementations§
Source§impl Clone for PixelDifference
impl Clone for PixelDifference
Source§impl Debug for PixelDifference
impl Debug for PixelDifference
impl Eq for PixelDifference
Source§impl PartialEq for PixelDifference
impl PartialEq for PixelDifference
impl StructuralPartialEq for PixelDifference
Auto Trait Implementations§
impl Freeze for PixelDifference
impl RefUnwindSafe for PixelDifference
impl Send for PixelDifference
impl Sync for PixelDifference
impl Unpin for PixelDifference
impl UnsafeUnpin for PixelDifference
impl UnwindSafe for PixelDifference
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