nacfahi/nacfahi-tests/tests/tiny_impl.rs
Dzuchun 96ffd64c0c Re-implemented the derive macro
- used `syn::parse_quote!` instead of constructing `syn` structs
  directly. unsurprisingly, makes a world of difference!
- code is, like, 1k lines shorter now
- moved tests into dedicated crate
- tweaked the tests even more, to represent complete lack of dependency
  on external crates
2025-12-22 22:27:58 +00:00

12 lines
316 B
Rust

#![allow(missing_docs, missing_debug_implementations)]
use nacfahi::models::{
FitModelSum,
basic::{Constant, Exponent, Gaussian},
};
#[derive(FitModelSum)]
pub struct CustomModel<Scalar, const N: usize> {
pub cst: Constant<Scalar>,
pub exp: Exponent<Scalar>,
pub peaks: [Gaussian<Scalar>; N],
}