scientific-cal 0.2.4

scientific cal
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Debug)]
pub enum SpectrumError {
    FFTApplyError,
    IFFTApplyError
}
use std::fmt;

impl fmt::Display for SpectrumError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            SpectrumError::FFTApplyError => write!(f, "Failed to apply the fft to the data"),
            SpectrumError::IFFTApplyError => write!(f, "Failed to apply the ifft to the data"),
        }
    }
}

impl std::error::Error for SpectrumError {}