pub enum StlError {
OptionOutOfRange {
option: &'static str,
requirement: &'static str,
got: f64,
min: Option<f64>,
exclusive_min: Option<f64>,
max: Option<f64>,
},
EvenSpan {
option: &'static str,
got: usize,
},
TooFewObservations {
needed: usize,
got: usize,
},
ValueNotFinite {
index: usize,
},
}Expand description
Why a decomposition was refused.
Variants§
OptionOutOfRange
An option is outside its domain. min / max are inclusive bounds;
exclusive_min an exclusive one (a span longer than the period).
Fields
EvenSpan
A span is even: a Loess span is centred on its point, so it is odd.
TooFewObservations
Fewer than two full cycles.
ValueNotFinite
The series holds a NaN or an infinity.
Trait Implementations§
Source§impl Error for StlError
impl Error for StlError
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 StlError
Auto Trait Implementations§
impl Freeze for StlError
impl RefUnwindSafe for StlError
impl Send for StlError
impl Sync for StlError
impl Unpin for StlError
impl UnsafeUnpin for StlError
impl UnwindSafe for StlError
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