pub enum BenchmarkComparisonError {
DuplicateCurrent {
scope: BenchmarkScope,
span_label: String,
},
DuplicatePrevious {
scope: BenchmarkScope,
span_label: String,
},
Average(BenchmarkAverageError),
}Expand description
A comparison refuses ambiguous row identities or unrepresentable means.
Variants§
DuplicateCurrent
More than one current row has the same scope and span.
DuplicatePrevious
More than one previous row has the same scope and span.
Average(BenchmarkAverageError)
A row’s selected mean cannot be represented.
Trait Implementations§
Source§impl Clone for BenchmarkComparisonError
impl Clone for BenchmarkComparisonError
Source§impl Debug for BenchmarkComparisonError
impl Debug for BenchmarkComparisonError
Source§impl Display for BenchmarkComparisonError
impl Display for BenchmarkComparisonError
impl Eq for BenchmarkComparisonError
Source§impl Error for BenchmarkComparisonError
impl Error for BenchmarkComparisonError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<BenchmarkAverageError> for BenchmarkComparisonError
impl From<BenchmarkAverageError> for BenchmarkComparisonError
Source§fn from(source: BenchmarkAverageError) -> Self
fn from(source: BenchmarkAverageError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BenchmarkComparisonError
impl PartialEq for BenchmarkComparisonError
impl StructuralPartialEq for BenchmarkComparisonError
Auto Trait Implementations§
impl Freeze for BenchmarkComparisonError
impl RefUnwindSafe for BenchmarkComparisonError
impl Send for BenchmarkComparisonError
impl Sync for BenchmarkComparisonError
impl Unpin for BenchmarkComparisonError
impl UnsafeUnpin for BenchmarkComparisonError
impl UnwindSafe for BenchmarkComparisonError
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> CustomError for T
impl<T> CustomError for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.