pub struct VisualComparison {
pub width: u32,
pub height: u32,
pub changed_pixels: u64,
pub changed_ratio: f64,
pub difference_box: Option<VisualClip>,
}Expand description
Pixel-level comparison of two PNG images.
Only available with the visual-compare feature.
Fields§
§width: u32§height: u32§changed_pixels: u64§changed_ratio: f64§difference_box: Option<VisualClip>Trait Implementations§
Source§impl Debug for VisualComparison
impl Debug for VisualComparison
Auto Trait Implementations§
impl Freeze for VisualComparison
impl RefUnwindSafe for VisualComparison
impl Send for VisualComparison
impl Sync for VisualComparison
impl Unpin for VisualComparison
impl UnsafeUnpin for VisualComparison
impl UnwindSafe for VisualComparison
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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