#[non_exhaustive]pub enum StatsError {
Empty,
NonFinite {
index: usize,
},
MixedMetricRoles {
metric: String,
first: MetricRole,
second: MetricRole,
},
InsufficientTrendSamples {
count: usize,
},
NoDistinctTrendTimestamps,
}Expand description
Invalid input for deterministic statistics.
§Examples
assert_eq!(
ailloli_ui_bench::summarize_samples(&[]),
Err(ailloli_ui_bench::StatsError::Empty),
);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
A summary was requested for no samples.
NonFinite
A timestamp or value was NaN or infinite.
MixedMetricRoles
Samples sharing a metric name declared incompatible regression roles.
InsufficientTrendSamples
A trend received fewer than two samples.
NoDistinctTrendTimestamps
Every trend pair had equal timestamps, leaving no defined slope.
Trait Implementations§
Source§impl Clone for StatsError
impl Clone for StatsError
Source§fn clone(&self) -> StatsError
fn clone(&self) -> StatsError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatsError
impl Debug for StatsError
Source§impl Display for StatsError
impl Display for StatsError
Source§impl Error for StatsError
impl Error for StatsError
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 StatsError
impl PartialEq for StatsError
impl Eq for StatsError
impl StructuralPartialEq for StatsError
Auto Trait Implementations§
impl Freeze for StatsError
impl RefUnwindSafe for StatsError
impl Send for StatsError
impl Sync for StatsError
impl Unpin for StatsError
impl UnwindSafe for StatsError
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