rstmt_core/intervals/traits/ops.rs
1/*
2 Appellation: ops <module>
3 Created At: 2025.12.31:18:11:55
4 Contrib: @FL03
5*/
6use crate::intervals::StepSize;
7use num_traits::NumOps;
8
9/// [`StepSizeOps`] provides a generic trait for types that can be operated on with
10/// [`StepSize`] values.
11pub trait StepSizeOps
12where
13 Self: Sized + NumOps<StepSize, Self> + NumOps<Self, StepSize>,
14{
15}
16
17impl<T> StepSizeOps for T where T: Sized + NumOps<StepSize, T> + NumOps<T, StepSize> {}