pub struct Difference {
pub share: f64,
pub cluster: usize,
pub max: u8,
}Expand description
How two drawings of the same size differ.
Fields§
The share of pixels that are unexplained.
cluster: usizeThe size of the largest 8-connected cluster of unexplained pixels.
max: u8The largest difference in any channel between the same pixel of each.
Implementations§
Source§impl Difference
impl Difference
Sourcepub fn within_tolerance(&self) -> bool
pub fn within_tolerance(&self) -> bool
Whether this is only the anti-aliasing two rasterizers may differ by.
Trait Implementations§
Source§impl Clone for Difference
impl Clone for Difference
impl Copy for Difference
Source§impl Debug for Difference
impl Debug for Difference
Source§impl PartialEq for Difference
impl PartialEq for Difference
impl StructuralPartialEq for Difference
Auto Trait Implementations§
impl Freeze for Difference
impl RefUnwindSafe for Difference
impl Send for Difference
impl Sync for Difference
impl Unpin for Difference
impl UnsafeUnpin for Difference
impl UnwindSafe for Difference
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