pub enum StatisticError {
DimensionError(DimensionError),
ShapeError(ShapeError),
}
Expand description
An error associated with the calculation of a statistic from a spectrum.
Variants§
DimensionError(DimensionError)
The statistic is not defined for an array of the provided dimensionality.
ShapeError(ShapeError)
The statistic is not defined for an array of the provided shape.
Trait Implementations§
Source§impl Debug for StatisticError
impl Debug for StatisticError
Source§impl Display for StatisticError
impl Display for StatisticError
Source§impl Error for StatisticError
impl Error for StatisticError
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()
Auto Trait Implementations§
impl Freeze for StatisticError
impl RefUnwindSafe for StatisticError
impl Send for StatisticError
impl Sync for StatisticError
impl Unpin for StatisticError
impl UnwindSafe for StatisticError
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