#[non_exhaustive]pub enum ChartInputError {
Sample {
index: usize,
error: ControlChartError,
},
TooFewSamples {
got: usize,
min: usize,
},
Standard(ControlChartError),
}Expand description
Why a chart computed from a whole slice of samples refused that slice.
Carries the position of the refused sample, which a sample-by-sample
ControlChartError cannot: the chart functions that take every sample
at once are the only place that position is known.
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.
Sample
The sample at index cannot be charted.
Fields
§
error: ControlChartErrorWhat is wrong with it.
TooFewSamples
Fewer samples than the chart needs.
Standard(ControlChartError)
A known (Phase I) parameter given with the samples is invalid
(ControlChartError::InvalidStandard).
Trait Implementations§
Source§impl Clone for ChartInputError
impl Clone for ChartInputError
Source§impl Debug for ChartInputError
impl Debug for ChartInputError
Source§impl Display for ChartInputError
impl Display for ChartInputError
Source§impl Error for ChartInputError
impl Error for ChartInputError
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 ChartInputError
impl PartialEq for ChartInputError
impl StructuralPartialEq for ChartInputError
Auto Trait Implementations§
impl Freeze for ChartInputError
impl RefUnwindSafe for ChartInputError
impl Send for ChartInputError
impl Sync for ChartInputError
impl Unpin for ChartInputError
impl UnsafeUnpin for ChartInputError
impl UnwindSafe for ChartInputError
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