concision_core/nn/
error.rs

1/*
2   Appellation: error <mod>
3   Contrib: FL03 <jo3mccain@icloud.com>
4*/
5use crate::error::PredictError;
6use strum::{AsRefStr, Display, EnumCount, EnumIs, EnumIter, EnumString, VariantNames};
7
8#[derive(
9    AsRefStr,
10    Clone,
11    Debug,
12    Display,
13    EnumCount,
14    EnumIs,
15    EnumIter,
16    EnumString,
17    Eq,
18    Hash,
19    Ord,
20    PartialEq,
21    PartialOrd,
22    VariantNames,
23)]
24#[cfg_attr(
25    feature = "serde",
26    derive(serde::Deserialize, serde::Serialize),
27    serde(rename_all = "snake_case", untagged)
28)]
29#[strum(serialize_all = "snake_case")]
30pub enum ModelError {
31    Predict(PredictError),
32}
33
34impl ModelError {
35    // nested_constructor!(ModelError<Predict>, PredictError {
36
37    // })
38}