pub enum ToleranceMetric {
MaxAbsDiff(u32),
MeanAbsDiff(f64),
Psnr(f64),
RmsError(f64),
}Expand description
Which metric to use for pass/fail decisions.
Variants§
MaxAbsDiff(u32)
Maximum absolute difference must be ≤ threshold.
MeanAbsDiff(f64)
Mean absolute difference must be ≤ threshold.
Psnr(f64)
PSNR must be ≥ threshold (in dB). Higher is better.
RmsError(f64)
RMS error must be ≤ threshold.
Trait Implementations§
Source§impl Clone for ToleranceMetric
impl Clone for ToleranceMetric
Source§fn clone(&self) -> ToleranceMetric
fn clone(&self) -> ToleranceMetric
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 moreimpl Copy for ToleranceMetric
Source§impl Debug for ToleranceMetric
impl Debug for ToleranceMetric
Source§impl Display for ToleranceMetric
impl Display for ToleranceMetric
Source§impl PartialEq for ToleranceMetric
impl PartialEq for ToleranceMetric
Source§fn eq(&self, other: &ToleranceMetric) -> bool
fn eq(&self, other: &ToleranceMetric) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToleranceMetric
Auto Trait Implementations§
impl Freeze for ToleranceMetric
impl RefUnwindSafe for ToleranceMetric
impl Send for ToleranceMetric
impl Sync for ToleranceMetric
impl Unpin for ToleranceMetric
impl UnsafeUnpin for ToleranceMetric
impl UnwindSafe for ToleranceMetric
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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