#[non_exhaustive]pub enum PercentileCapabilityError {
NoSpecification,
InvalidSpecification,
InsufficientData {
got: usize,
},
NonFiniteData {
index: usize,
},
NoVariation,
ModelNotFitted(CapabilityModel),
}Expand description
Why a percentile capability was refused.
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.
NoSpecification
Neither USL nor LSL was given.
InvalidSpecification
USL is not above LSL.
InsufficientData
Fewer than MIN_PERCENTILE_DATA values.
NonFiniteData
A value is NaN or infinite.
NoVariation
Every value is the same.
ModelNotFitted(CapabilityModel)
The named family cannot describe the data (log-normal, Weibull, gamma and exponential need positive values, beta values within (0, 1)).
Trait Implementations§
Source§impl Clone for PercentileCapabilityError
impl Clone for PercentileCapabilityError
Source§impl Debug for PercentileCapabilityError
impl Debug for PercentileCapabilityError
Source§impl Display for PercentileCapabilityError
impl Display for PercentileCapabilityError
Source§impl Error for PercentileCapabilityError
impl Error for PercentileCapabilityError
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()
impl StructuralPartialEq for PercentileCapabilityError
Auto Trait Implementations§
impl Freeze for PercentileCapabilityError
impl RefUnwindSafe for PercentileCapabilityError
impl Send for PercentileCapabilityError
impl Sync for PercentileCapabilityError
impl Unpin for PercentileCapabilityError
impl UnsafeUnpin for PercentileCapabilityError
impl UnwindSafe for PercentileCapabilityError
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