pub enum CriterionError {
MissingObservation(ObservationRef),
NonNumericObservation(ObservationRef),
NonFiniteNumber,
UndefinedRelativeChange,
InvalidFraction {
name: &'static str,
value: f64,
},
IncompatibleOperands,
UnsupportedOrdering,
EmptyComposite(&'static str),
}Expand description
Why a criterion could not be evaluated.
Variants§
MissingObservation(ObservationRef)
NonNumericObservation(ObservationRef)
NonFiniteNumber
UndefinedRelativeChange
InvalidFraction
IncompatibleOperands
UnsupportedOrdering
EmptyComposite(&'static str)
Trait Implementations§
Source§impl Clone for CriterionError
impl Clone for CriterionError
Source§impl Debug for CriterionError
impl Debug for CriterionError
Source§impl Display for CriterionError
impl Display for CriterionError
Source§impl Error for CriterionError
impl Error for CriterionError
1.30.0 · 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 PartialEq for CriterionError
impl PartialEq for CriterionError
impl StructuralPartialEq for CriterionError
Auto Trait Implementations§
impl Freeze for CriterionError
impl RefUnwindSafe for CriterionError
impl Send for CriterionError
impl Sync for CriterionError
impl Unpin for CriterionError
impl UnsafeUnpin for CriterionError
impl UnwindSafe for CriterionError
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