rstmt_core/freq/
frequency.rs

1/*
2    Appellation: freq <module>
3    Created At: 2025.12.29:17:13:00
4    Contrib: @FL03
5*/
6/// The [`Frequency`] type is a generic wrapper around type `T` that implements the
7/// [`RawFrequency`] trait. This implementation is designed to provide a consistent interface
8/// for dealing with frequencies within the crate, enabling conversion, arithmetic operations,
9/// and other utilities that are common to frequency values.
10#[derive(Clone, Copy, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
11#[cfg_attr(
12    feature = "serde",
13    derive(serde::Deserialize, serde::Serialize),
14    serde(transparent)
15)]
16#[repr(transparent)]
17pub struct Frequency<T = f64>(pub T);