#[non_exhaustive]pub enum SpectralResidualError {
OptionOutOfRange {
option: &'static str,
requirement: &'static str,
got: f64,
min: Option<f64>,
exclusive_min: Option<f64>,
max: Option<f64>,
exclusive_max: Option<f64>,
},
TooFewObservations {
needed: usize,
got: usize,
},
ValueNotFinite {
index: usize,
},
}Expand description
Why a SpectralResidual run was refused.
One condition, not the rulebook. A consumer has to tell its user which setting to change, and a refusal that lists every rule leaves it re-validating the options the crate already checks – which is how the same rules end up written twice, in two places that can drift.
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.
OptionOutOfRange
An option is outside its domain.
Each end of the domain is given once: min when the lower bound is
inclusive, exclusive_min when it is exclusive, neither when there is
none (likewise max / exclusive_max).
Fields
TooFewObservations
Fewer observations than the transform is applied to at once.
ValueNotFinite
The series holds a NaN or an infinity.
Trait Implementations§
Source§impl Clone for SpectralResidualError
impl Clone for SpectralResidualError
impl Copy for SpectralResidualError
Source§impl Debug for SpectralResidualError
impl Debug for SpectralResidualError
Source§impl Display for SpectralResidualError
impl Display for SpectralResidualError
Source§impl Error for SpectralResidualError
impl Error for SpectralResidualError
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 SpectralResidualError
impl PartialEq for SpectralResidualError
impl StructuralPartialEq for SpectralResidualError
Auto Trait Implementations§
impl Freeze for SpectralResidualError
impl RefUnwindSafe for SpectralResidualError
impl Send for SpectralResidualError
impl Sync for SpectralResidualError
impl Unpin for SpectralResidualError
impl UnsafeUnpin for SpectralResidualError
impl UnwindSafe for SpectralResidualError
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