stock-trek 0.8.6

Stock Trek time-series analysis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::fmt;

#[derive(Debug)]
#[non_exhaustive]
#[repr(u8)]
pub enum GeneralError {
    Message(String),
}

impl fmt::Display for GeneralError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            GeneralError::Message(msg) => write!(f, "{}", msg),
        }
    }
}

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